mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: lenovo: wmi-gamezone: Drop gz_chain_head
@ 2026-03-13 21:06 Nathan Chancellor
  2026-03-14 18:27 ` Mark Pearson
  2026-03-17 13:00 ` Ilpo Järvinen
  0 siblings, 2 replies; 3+ messages in thread
From: Nathan Chancellor @ 2026-03-13 21:06 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: Mark Pearson, Derek J. Clark, Hans de Goede, Ilpo Järvinen,
	Armin Wolf, Ingo Molnar, Will Deacon, Boqun Feng, Waiman Long,
	platform-driver-x86, linux-kernel, Nathan Chancellor

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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-17 13:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-13 21:06 [PATCH] platform/x86: lenovo: wmi-gamezone: Drop gz_chain_head Nathan Chancellor
2026-03-14 18:27 ` Mark Pearson
2026-03-17 13:00 ` Ilpo Järvinen

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®