[tip:locking/core 21/38] drivers/platform/x86/lenovo/wmi-gamezone.c:34:31: warning: unused variable 'gz_chain_head'

From: kernel test robot

Date: Mon Mar 30 2026 - 22:17:45 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
head: a21c1e961de28b95099a9ca2c3774b2eee1a33bb
commit: 1ea4b473504b6dc6a0d21c298519aff2d52433c9 [21/38] locking/rwsem: Remove the list_head from struct rw_semaphore
config: i386-buildonly-randconfig-002-20260331 (https://download.01.org/0day-ci/archive/20260331/202603311058.D8qRr92a-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260331/202603311058.D8qRr92a-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603311058.D8qRr92a-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/platform/x86/lenovo/wmi-gamezone.c:34:31: warning: unused variable 'gz_chain_head' [-Wunused-variable]
34 | static BLOCKING_NOTIFIER_HEAD(gz_chain_head);
| ^~~~~~~~~~~~~
include/linux/notifier.h:119:32: note: expanded from macro 'BLOCKING_NOTIFIER_HEAD'
119 | struct blocking_notifier_head name = \
| ^~~~
1 warning generated.


vim +/gz_chain_head +34 drivers/platform/x86/lenovo/wmi-gamezone.c

22024ac5366f06 Derek J. Clark 2025-07-01 33
22024ac5366f06 Derek J. Clark 2025-07-01 @34 static BLOCKING_NOTIFIER_HEAD(gz_chain_head);
22024ac5366f06 Derek J. Clark 2025-07-01 35

:::::: The code at line 34 was first introduced by commit
:::::: 22024ac5366f065a7b931bee5b62e2588521c4f0 platform/x86: Add Lenovo Gamezone WMI Driver

:::::: TO: Derek J. Clark <derekjohn.clark@xxxxxxxxx>
:::::: CC: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki