From: Gregory CLEMENT <gregory.clement@bootlin.com>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Andrew Lunn" <andrew@lunn.ch>,
"Sebastian Hesselbarth" <sebastian.hesselbarth@gmail.com>,
"Jason Cooper" <jason@lakedaemon.net>
Cc: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: dove: Drop a write-only variable
Date: Mon, 02 Sep 2024 16:19:47 +0200 [thread overview]
Message-ID: <87plpmf88s.fsf@BLaptop.bootlin.com> (raw)
In-Reply-To: <20240708092352.1358438-2-u.kleine-koenig@baylibre.com>
Hi Uwe ,
> This fixes a W=1 build error:
>
> arch/arm/mach-dove/common.c: In function ‘dove_clk_init’:
> arch/arm/mach-dove/common.c:85:40: error: variable ‘gephy’ set but not used [-Werror=unused-but-set-variable]
> 85 | struct clk *xor0, *xor1, *ge, *gephy;
> | ^~~~~
>
> Fixes: 521674718af0 ("ARM: dove: add clock gating control")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Applied on mvebu/arm
Thanks,
Gregory
> ---
> arch/arm/mach-dove/common.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c
> index 3aea90bbb41a..35e978514591 100644
> --- a/arch/arm/mach-dove/common.c
> +++ b/arch/arm/mach-dove/common.c
> @@ -82,7 +82,7 @@ static void __init dove_clk_init(void)
> {
> struct clk *usb0, *usb1, *sata, *pex0, *pex1, *sdio0, *sdio1;
> struct clk *nand, *camera, *i2s0, *i2s1, *crypto, *ac97, *pdma;
> - struct clk *xor0, *xor1, *ge, *gephy;
> + struct clk *xor0, *xor1, *ge;
>
> tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk);
>
> @@ -102,7 +102,7 @@ static void __init dove_clk_init(void)
> pdma = dove_register_gate("pdma", "tclk", CLOCK_GATING_BIT_PDMA);
> xor0 = dove_register_gate("xor0", "tclk", CLOCK_GATING_BIT_XOR0);
> xor1 = dove_register_gate("xor1", "tclk", CLOCK_GATING_BIT_XOR1);
> - gephy = dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY);
> + dove_register_gate("gephy", "tclk", CLOCK_GATING_BIT_GIGA_PHY);
> ge = dove_register_gate("ge", "gephy", CLOCK_GATING_BIT_GBE);
>
> orion_clkdev_add(NULL, "orion_spi.0", tclk);
>
> base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233
> --
> 2.43.0
prev parent reply other threads:[~2024-09-02 14:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 9:23 [PATCH] ARM: dove: Drop a write-only variable Uwe Kleine-König
2024-07-08 13:37 ` Andrew Lunn
2024-09-02 14:19 ` Gregory CLEMENT [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87plpmf88s.fsf@BLaptop.bootlin.com \
--to=gregory.clement@bootlin.com \
--cc=andrew@lunn.ch \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=sebastian.hesselbarth@gmail.com \
--cc=u.kleine-koenig@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).