From nobody Wed Jun 10 09:43:28 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16BD13845DC for ; Tue, 19 May 2026 06:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779171327; cv=none; b=msxT4eYoIaZmHUvnnZ/J2OYCNUrepGP1kO/oqB7p10eFE12O6cbAELG8+lUdFICHY1nNdkj89I7/iUvnFZRERMhmwFsWXNw+gNswZ4uFZBRIwoKRN+a3BHMEjEPCoIkq12eeAjFjvPP5BuiIV2BMX2oa1dyUJT981cpZ/LI3LzQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779171327; c=relaxed/simple; bh=Y7sqxj+GjHqi+wVANT8l8x2lHqafnbefzhVTlcT8Ou0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Au3B6+8p1sbuI4ltPvhvWKEMhnnTodiFKmbUrHw+uaSqWYEebf9J53t+V4rOyOhoWl/PwCNcfaxtU6hPmnssUkYmg8jZc92UKFiTpZiWROKIBaukBnRu7rk3yhOkl/rsYzxigVozm4OaFKjee6qG8YN98L5sC9+X/TKBEqmexEg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KXgpUo7R; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KXgpUo7R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4ACD2C2BCB3; Tue, 19 May 2026 06:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779171326; bh=Y7sqxj+GjHqi+wVANT8l8x2lHqafnbefzhVTlcT8Ou0=; h=From:To:Cc:Subject:Date:From; b=KXgpUo7R8b3TsMd9p9iCIJwvDmYzONR8CDreG42LASz0yhcrouBTAJHIGLcnvsCeS EcgFMku3cX/zwZa0SpEF3jMGXFqSpgxFuJYb5nhzrt7Y5Qe9qcBa0rv9wqlr2RdQFF RsAajHXScESiLfOk0Ymfu7a0filAORmshJEZohOebGQF1id2j/YEKlPYtrJ4Ibbr/5 9S1zAfjWiccNvTs4Zl1NdC3ljOzmBIWv/oickv9kdVmVpRJ3iHqrA+YMYfh1dQVeAh m7tagiW93G77IAlAOmoyNBlqeJT49nfruGr2C0aj9nACZIvNaOTjctxD59gAqRExzp xcSy2L+wPPLUw== From: Jisheng Zhang To: Greg Kroah-Hartman , =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Todd Kjos , Christian Brauner , Carlos Llamas , Alice Ryhl Cc: linux-kernel@vger.kernel.org Subject: [PATCH] binder: Use LIST_HEAD() to initialize on stack list head Date: Tue, 19 May 2026 13:56:23 +0800 Message-ID: <20260519055623.13142-1-jszhang@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use LIST_HEAD to initialize on stack list head. No intentional functional impact. Change generated with below coccinelle script: @@ identifier name; @@ - struct list_head name; + LIST_HEAD(name); ... when !=3D name - INIT_LIST_HEAD(&name); Signed-off-by: Jisheng Zhang --- drivers/android/binder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 9e6194224593..ec0ab4f28530 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -3080,12 +3080,10 @@ static void binder_transaction(struct binder_proc *= proc, int t_debug_id =3D atomic_inc_return(&binder_last_id); ktime_t t_start_time =3D ktime_get(); struct lsm_context lsmctx =3D { }; - struct list_head sgc_head; - struct list_head pf_head; + LIST_HEAD(sgc_head); + LIST_HEAD(pf_head); const void __user *user_buffer =3D (const void __user *) (uintptr_t)tr->data.ptr.buffer; - INIT_LIST_HEAD(&sgc_head); - INIT_LIST_HEAD(&pf_head); =20 e =3D binder_transaction_log_add(&binder_transaction_log); e->debug_id =3D t_debug_id; --=20 2.53.0