drivers/hid/hid-appletb-kbd.c:119:18: sparse: sparse: symbol 'appletb_kbd_attrs' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-6.15/apple head: 93a0fc48948107e0cc34e1de22c3cb363a8f2783 commit: 8e9b9152cfbdc2a90a8acb68acbc1407ef67d139 [2/4] HID: hid-appletb-kbd: add driver for the keyboard mode of Apple Touch Bars config: arc-randconfig-r122-20250209 (https://download.01.org/0day-ci/archive/20250209/[email protected]/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20250209/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
>> drivers/hid/hid-appletb-kbd.c:119:18: sparse: sparse: symbol 'appletb_kbd_attrs' was not declared. Should it be static?
vim +/appletb_kbd_attrs +119 drivers/hid/hid-appletb-kbd.c
118
> 119 struct attribute *appletb_kbd_attrs[] = { 120 &dev_attr_mode.attr,
121 NULL
122 };
123 ATTRIBUTE_GROUPS(appletb_kbd);
124
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Fixes sent here:
https://lore.kernel.org/linux-input/[email protected]/T/#t
Quoted 30 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-6.15/apple head: 93a0fc48948107e0cc34e1de22c3cb363a8f2783 commit: 8e9b9152cfbdc2a90a8acb68acbc1407ef67d139 [2/4] HID: hid-appletb-kbd: add driver for the keyboard mode of Apple Touch Bars config: arc-randconfig-r122-20250209 (https://download.01.org/0day-ci/archive/20250209/[email protected]/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20250209/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/sparse warnings: (new ones prefixed by >>)
Quoted 1 line
Quoted 1 line
drivers/hid/hid-appletb-kbd.c:119:18: sparse: sparse: symbol 'appletb_kbd_attrs' was not declared. Should it be static?vim +/appletb_kbd_attrs +119
drivers/hid/hid-appletb-kbd.c118
Quoted 1 line
119 struct attribute *appletb_kbd_attrs[] = {
120 &dev_attr_mode.attr,
121 NULL
122 };
123ATTRIBUTE_GROUPS(appletb_kbd);
124Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki