From: Lee Jones <lee@kernel.org>
To: Nathan Chancellor <nathan@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Jiri Slaby <jirislaby@kernel.org>,
Aaro Koskinen <aaro.koskinen@iki.fi>,
Andreas Kemnade <andreas@kemnade.info>,
Kevin Hilman <khilman@baylibre.com>,
Roger Quadros <rogerq@kernel.org>,
Tony Lindgren <tony@atomide.com>,
linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org
Subject: Re: [PATCH] mfd: Remove node variables that are unused with CONFIG_OF=n
Date: Tue, 13 May 2025 10:47:26 +0100 [thread overview]
Message-ID: <20250513094726.GG2936510@google.com> (raw)
In-Reply-To: <20250508-mfd-fix-unused-node-variables-v1-1-df84d80cca55@kernel.org>
On Thu, 08 May 2025, Nathan Chancellor wrote:
> A recent cleanup introduced a few instances of -Wunused-variable in
> configurations without CONFIG_OF because of_fwnode_handle() does not
> reference its argument in that case:
>
> drivers/mfd/twl4030-irq.c: In function 'twl4030_init_irq':
> drivers/mfd/twl4030-irq.c:679:46: warning: unused variable 'node' [-Wunused-variable]
> 679 | struct device_node *node = dev->of_node;
> | ^~~~
> drivers/mfd/max8925-core.c: In function 'max8925_irq_init':
> drivers/mfd/max8925-core.c:659:29: warning: unused variable 'node' [-Wunused-variable]
> 659 | struct device_node *node = chip->dev->of_node;
> | ^~~~
> drivers/mfd/88pm860x-core.c: In function 'device_irq_init':
> drivers/mfd/88pm860x-core.c:576:29: warning: unused variable 'node' [-Wunused-variable]
> 576 | struct device_node *node = i2c->dev.of_node;
> | ^~~~
>
> Use the value of these variables as the argument to of_fwnode_handle()
> directly, clearing up the warnings.
>
> Fixes: e3d44f11da04 ("mfd: Switch to irq_domain_create_*()")
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> drivers/mfd/88pm860x-core.c | 5 ++---
> drivers/mfd/max8925-core.c | 5 ++---
> drivers/mfd/twl4030-irq.c | 5 ++---
> 3 files changed, 6 insertions(+), 9 deletions(-)
Doesn't apply. Which base commit / repo / branch are you using?
--
Lee Jones [李琼斯]
next prev parent reply other threads:[~2025-05-13 9:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-08 15:57 [PATCH] mfd: Remove node variables that are unused with CONFIG_OF=n Nathan Chancellor
2025-05-12 8:50 ` Jiri Slaby
2025-05-13 9:47 ` Lee Jones [this message]
2025-05-13 10:45 ` Nathan Chancellor
2025-05-13 11:09 ` Lee Jones
2025-05-28 16:06 ` Nathan Chancellor
2025-06-13 13:39 ` Lee Jones
2025-06-13 16:06 ` Nathan Chancellor
2025-06-19 10:06 ` Lee Jones
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=20250513094726.GG2936510@google.com \
--to=lee@kernel.org \
--cc=aaro.koskinen@iki.fi \
--cc=andreas@kemnade.info \
--cc=jirislaby@kernel.org \
--cc=khilman@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=rogerq@kernel.org \
--cc=tglx@linutronix.de \
--cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.