Re: [PATCH] platform/x86: lenovo: wmi-gamezone: Drop gz_chain_head
From: Ilpo Järvinen
Date: Tue Mar 17 2026 - 09:06:36 EST
On Fri, 13 Mar 2026 14:06:34 -0700, 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 = \
> | ^~~~
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: lenovo: wmi-gamezone: Drop gz_chain_head
commit: 6b99cc51e13e816962318e2f97e6ac58dc431c33
--
i.