From: "Mark Pearson" <mpearson-lenovo@squebb.ca>
To: "Nathan Chancellor" <nathan@kernel.org>,
"Peter Zijlstra" <peterz@infradead.org>
Cc: "Derek J . Clark" <derekjohn.clark@gmail.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Armin Wolf" <W_Armin@gmx.de>, "Ingo Molnar" <mingo@redhat.com>,
"Will Deacon" <will@kernel.org>, "Boqun Feng" <boqun@kernel.org>,
"Waiman Long" <longman@redhat.com>,
"platform-driver-x86@vger.kernel.org"
<platform-driver-x86@vger.kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] platform/x86: lenovo: wmi-gamezone: Drop gz_chain_head
Date: Sat, 14 Mar 2026 14:27:38 -0400 [thread overview]
Message-ID: <de903152-9df9-4c2f-95ca-4b91690b6e22@app.fastmail.com> (raw)
In-Reply-To: <20260313-lenovo-wmi-gamezone-remove-gz_chain_head-v1-1-ce5231f0c6fa@kernel.org>
On Fri, Mar 13, 2026, at 5:06 PM, Nathan Chancellor wrote:
> After commit 1ea4b473504b ("locking/rwsem: Remove the list_head from
> struct rw_semaphore"), which removed a reference to the variable passed
> to __RWSEM_INITIALIZER(), certain configurations show an unused variable
> warning from the Lenovo wmi-gamezone driver:
>
> drivers/platform/x86/lenovo/wmi-gamezone.c:34:31: warning:
> 'gz_chain_head' defined but not used [-Wunused-variable]
> 34 | static BLOCKING_NOTIFIER_HEAD(gz_chain_head);
> | ^~~~~~~~~~~~~
> include/linux/notifier.h:119:39: note: in definition of macro
> 'BLOCKING_NOTIFIER_HEAD'
> 119 | struct blocking_notifier_head name =
> \
> | ^~~~
>
> This variable has been unused since the driver's initial addition to the
> tree. Its use was eliminated between v3 and v4 during development but
> due to the reference of gz_chain_head's wait_list member, the compiler
> could not warn that it was unused.
>
> Remove the variable to clear up the warning.
>
> Fixes: 22024ac5366f ("platform/x86: Add Lenovo Gamezone WMI Driver")
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> Peter, as 1ea4b473504b is in -tip, this should go there as well. Even
> though this only shows up after 1ea4b473504b, I think it is more fair to
> say this fixes 22024ac5366f.
> ---
> drivers/platform/x86/lenovo/wmi-gamezone.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/platform/x86/lenovo/wmi-gamezone.c
> b/drivers/platform/x86/lenovo/wmi-gamezone.c
> index 381836d29a96..c7fe7e3c9f17 100644
> --- a/drivers/platform/x86/lenovo/wmi-gamezone.c
> +++ b/drivers/platform/x86/lenovo/wmi-gamezone.c
> @@ -31,8 +31,6 @@
> #define LWMI_GZ_METHOD_ID_SMARTFAN_SET 44
> #define LWMI_GZ_METHOD_ID_SMARTFAN_GET 45
>
> -static BLOCKING_NOTIFIER_HEAD(gz_chain_head);
> -
> struct lwmi_gz_priv {
> enum thermal_mode current_mode;
> struct notifier_block event_nb;
>
> ---
> base-commit: 739690915ce1f017223ef4e6f3cc966ccfa3c861
> change-id: 20260313-lenovo-wmi-gamezone-remove-gz_chain_head-71d48410ad10
>
> Best regards,
> --
> Nathan Chancellor <nathan@kernel.org>
Change looks good to me
Reviewed-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Mark
next prev parent reply other threads:[~2026-03-14 18:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 21:06 Nathan Chancellor
2026-03-14 18:27 ` Mark Pearson [this message]
2026-03-17 13:00 ` Ilpo Järvinen
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=de903152-9df9-4c2f-95ca-4b91690b6e22@app.fastmail.com \
--to=mpearson-lenovo@squebb.ca \
--cc=W_Armin@gmx.de \
--cc=boqun@kernel.org \
--cc=derekjohn.clark@gmail.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mingo@redhat.com \
--cc=nathan@kernel.org \
--cc=peterz@infradead.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®