From nobody Sat Sep 26 07:59:42 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E9DF546D541; Thu, 3 Sep 2026 09:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788426054; cv=none; b=k04VlhsecBTBQKbWfIDZPy7ZrL61MrPRuCTRe5yeOReW2OdtBOCeQjkehgVKdZ77b/rq1VBz4kdWxMdRwuoHUnzN3tqLQQxsKKMgfvkNaJqif3bP0HPQYusngNmhRW2WlIMgr/nwWUv8dVNijSRBZ8u9fVKUGoGhlREWlu2q2pQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788426054; c=relaxed/simple; bh=7SFF6+bDkyVBOQmIZhhbaq+s0DnpIzs7wUvGIntywK8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CK7MAJdswKLSatxkDCUF6Az8YRW0PA9kkebiFfYT6gtI6EQylW5PlTRe9grauXhormGjwf0IYc6H106nyd5eXTBSCVAdr3zktglGD3GjvbQ0Dv+ORXl8lblGQ4hER4tXf3JIfqmnkjTUu9jYGxpC8i2jZIYpGQVQMaY7+IIKpf4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08D221F00A3A; Thu, 3 Sep 2026 09:00:48 +0000 (UTC) From: Geert Uytterhoeven To: =?UTF-8?q?Th=C3=A9o=20Lebrun?= , Conor Dooley , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Brian Masney Subject: [PATCH net-next v2 1/3] net: macb: Make sure clk_init_data is fully initialized Date: Thu, 3 Sep 2026 11:00:39 +0200 Message-ID: <62cfa62a8f39e0014d2fe9b30a668df20ace4a0c.1788425654.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The clk_init_data structure contains several mutually-exclusive members for different methods to specify the possible parents of a clock, prompting drivers to initialize only the members they need. However, not initializing all members may cause subtle issues, which are only exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is enabled. Make sure all members are fully initialized, to avoid such bugs, and to prevent future breakage when converting drivers to a different method for specifying the parents. Signed-off-by: Geert Uytterhoeven Reviewed-by: Brian Masney Reviewed-by: Th=C3=A9o Lebrun --- Compile-tested only. v2: - Add Reviewed-by. --- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/etherne= t/cadence/macb_main.c index 76ee4f5060335c4e..2e6a5e93d0cdd5d5 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -5375,7 +5375,7 @@ static int fu540_c000_clk_init(struct platform_device= *pdev, struct clk **pclk, struct clk **hclk, struct clk **tx_clk, struct clk **rx_clk, struct clk **tsu_clk) { - struct clk_init_data init; + struct clk_init_data init =3D {}; int err =3D 0; =20 err =3D macb_clk_init_dflt(pdev, pclk, hclk, tx_clk, rx_clk, tsu_clk); --=20 2.43.0 From nobody Sat Sep 26 07:59:42 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D908E305680; Thu, 3 Sep 2026 09:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788426059; cv=none; b=PDXJRwHUhaB8VnhR5/3uybOgz2CNDMY2vMka4F+rJwqQfpMJ/fwSsPDYfdCuKlZGS00y0bF/Cty9jZ/8eYRQDkNHzcOKJEZ/r8poiryh0BcnJ+V8p8O0RijG2VR3REQ5aSm6SJDErctbJGGVeOwnJ3C/6lrolMnq5/walmCdNZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788426059; c=relaxed/simple; bh=Y5AIHhLS8iOxJqe2C41AIZfSByrag0bx0tv5L7x5ULk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gcgzXtGQTA7sE+ei5BWqTvuqmWW+SusD8ec3RC8qG/XQ3RUW5hnd0sw3n8Lt6sgNrpkBiTrY9W0kUfIT5llUV3eBQmfwerbFk3wPpKARiNtzBzfg0qRJxmKlCI5GMlBTfxlPtCBMv5lMLDXaUBVd6fMDHH7067o0jJeSWImnhRQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C7811F000E9; Thu, 3 Sep 2026 09:00:53 +0000 (UTC) From: Geert Uytterhoeven To: =?UTF-8?q?Th=C3=A9o=20Lebrun?= , Conor Dooley , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Brian Masney Subject: [PATCH net-next v2 2/3] net: mdio: mux-meson-g12a: Make sure clk_init_data is fully initialized Date: Thu, 3 Sep 2026 11:00:40 +0200 Message-ID: <98e2b71c333fea0ed59bf615c818cb7b56e2f2b5.1788425654.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" The clk_init_data structure contains several mutually-exclusive members for different methods to specify the possible parents of a clock, prompting drivers to initialize only the members they need. However, not initializing all members may cause subtle issues, which are only exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is enabled. Make sure all members are fully initialized, to avoid such bugs, and to prevent future breakage when converting drivers to a different method for specifying the parents. Signed-off-by: Geert Uytterhoeven Reviewed-by: Brian Masney --- Compile-tested only. v2: - Add Reviewed-by. --- drivers/net/mdio/mdio-mux-meson-g12a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mdio/mdio-mux-meson-g12a.c b/drivers/net/mdio/mdio= -mux-meson-g12a.c index 08d6a6c93fb8bf02..e6c9ef3641afa27e 100644 --- a/drivers/net/mdio/mdio-mux-meson-g12a.c +++ b/drivers/net/mdio/mdio-mux-meson-g12a.c @@ -223,7 +223,7 @@ static int g12a_ephy_glue_clk_register(struct device *d= ev) { struct g12a_mdio_mux *priv =3D dev_get_drvdata(dev); const char *parent_names[PLL_MUX_NUM_PARENT]; - struct clk_init_data init; + struct clk_init_data init =3D {}; struct g12a_ephy_pll *pll; struct clk_mux *mux; struct clk *clk; --=20 2.43.0 From nobody Sat Sep 26 07:59:42 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B0CFC469846; Thu, 3 Sep 2026 09:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788426063; cv=none; b=h42ws+VpXubj4v6ItaZe2yg1MpBYYsxRnNmH01Hb/bkmwc/RpXWvO72djgfqmr5quJWneNZ/0eyDR35RX857QedBP1Jv7OTDTe8M/1x1V2mMVrUqH350R+qscaisKFlvkLoUlhLiG2JlNedk1CkWb/Q4jTqC1juWF1OvfsgvDME= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788426063; c=relaxed/simple; bh=1oam49rE2q1fURbGL8mKULShH5jhQop+PcZjj/rJ5Gk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iWGAuiKBl3cDf3JZU4IOT5ARMyJ43e5lc9CTU79VW09+2DO5vUr5wdXTCs2t+NvqG7dDKpwz6qh3LW89GKyC8g6cI7aUgsAtPr6iaIErhLdDI/6H7P/sFal4loDMoTrvaAnejz8DE8Y5ql/3ViM2SQ4Atqo/RKVL4BlmHHw+mk4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EB501F00A3A; Thu, 3 Sep 2026 09:00:58 +0000 (UTC) From: Geert Uytterhoeven To: =?UTF-8?q?Th=C3=A9o=20Lebrun?= , Conor Dooley , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Brian Masney Subject: [PATCH net-next v2 3/3] net: phy: air_en8811h: Make sure clk_init_data is fully initialized Date: Thu, 3 Sep 2026 11:00:41 +0200 Message-ID: <0e869f49c910ce054aa22ae84480aab69420bb92.1788425654.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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" The clk_init_data structure contains several mutually-exclusive members for different methods to specify the possible parents of a clock, prompting drivers to initialize only the members they need. However, not initializing all members may cause subtle issues, which are only exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is enabled. Make sure all members are fully initialized, to avoid such bugs, and to prevent future breakage when converting drivers to a different method for specifying the parents. Signed-off-by: Geert Uytterhoeven Reviewed-by: Brian Masney --- Compile-tested only. v2: - Add Reviewed-by. --- drivers/net/phy/air_en8811h.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/air_en8811h.c b/drivers/net/phy/air_en8811h.c index 0eeb7b9a4e260bcb..429231949120c7c8 100644 --- a/drivers/net/phy/air_en8811h.c +++ b/drivers/net/phy/air_en8811h.c @@ -932,7 +932,7 @@ static const struct clk_ops an8811hb_clk_ops =3D { =20 static int an8811hb_clk_provider_setup(struct device *dev, struct clk_hw *= hw) { - struct clk_init_data init; + struct clk_init_data init =3D {}; int ret; =20 if (!IS_ENABLED(CONFIG_COMMON_CLK)) @@ -1031,7 +1031,7 @@ static const struct clk_ops en8811h_clk_ops =3D { =20 static int en8811h_clk_provider_setup(struct device *dev, struct clk_hw *h= w) { - struct clk_init_data init; + struct clk_init_data init =3D {}; int ret; =20 if (!IS_ENABLED(CONFIG_COMMON_CLK)) --=20 2.43.0