Re: [PATCH v5 04/11] platform/x86: asus-wmi: Add support for multiple kbd RGB handlers

From: kernel test robot
Date: Wed Mar 26 2025 - 15:56:15 EST


Hi Antheas,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 38fec10eb60d687e30c8c6b5420d86e8149f7557]

url: https://github.com/intel-lab-lkp/linux/commits/Antheas-Kapenekakis/HID-asus-refactor-init-sequence-per-spec/20250326-025845
base: 38fec10eb60d687e30c8c6b5420d86e8149f7557
patch link: https://lore.kernel.org/r/20250325184601.10990-5-lkml%40antheas.dev
patch subject: [PATCH v5 04/11] platform/x86: asus-wmi: Add support for multiple kbd RGB handlers
config: i386-randconfig-062-20250326 (https://download.01.org/0day-ci/archive/20250327/202503270313.owOkR15i-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.1 (https://github.com/llvm/llvm-project 424c2d9b7e4de40d0804dd374721e6411c27d1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250327/202503270313.owOkR15i-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/202503270313.owOkR15i-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/platform/x86/asus-wmi.c:1498:21: sparse: sparse: symbol 'asus_ref' was not declared. Should it be static?
drivers/platform/x86/asus-wmi.c:2576:33: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/platform/x86/asus-wmi.c:2576:33: sparse: expected unsigned int [usertype] val
drivers/platform/x86/asus-wmi.c:2576:33: sparse: got restricted __le32 [usertype]

vim +/asus_ref +1498 drivers/platform/x86/asus-wmi.c

1497
> 1498 struct asus_hid_ref asus_ref = {
1499 .listeners = LIST_HEAD_INIT(asus_ref.listeners),
1500 .asus = NULL,
1501 .lock = __SPIN_LOCK_UNLOCKED(asus_ref.lock),
1502 };
1503

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