drivers/hid/hidraw.h:30:30: error: use of undeclared identifier 'HIDRAW_BUFFER_SIZE'
kernel test robot
build bot::::::
:::::: Manual check reason: "too many reports for this commit" ::::::
BCC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
TO: Jiri Kosina <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next head: e61d3737e144924bc27c536a31da8147f1b55554 commit: 3203bc9bc0795c44c25ce7b7762eeb35f73e82c4 [4/10] Merge branch 'for-7.4/upstream-fixes' into for-next
:::::: branch date: 16 hours ago
:::::: commit date: 17 hours ago
config: loongarch-randconfig-2000-20261127 (https://download.01.org/0day-ci/archive/20261128/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 578b1f2d6a9776b63cbb6b86f4cca6208d429f48) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261128/[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/r/[email protected]/
All errors (new ones prefixed by >>):
In file included from drivers/hid/hid-core.c:37:
>> drivers/hid/hidraw.h:30:30: error: use of undeclared identifier 'HIDRAW_BUFFER_SIZE'
30 | struct hidraw_report buffer[HIDRAW_BUFFER_SIZE];
| ^~~~~~~~~~~~~~~~~~1 error generated.
vim +/HIDRAW_BUFFER_SIZE +30 drivers/hid/hidraw.h
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 28
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 29 struct hidraw_list {
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 @30 struct hidraw_report buffer[HIDRAW_BUFFER_SIZE];
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 31 int head;
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 32 int tail;
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 33 struct fasync_struct *fasync;
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 34 struct hidraw *hidraw;
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 35 struct list_head node;
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 36 struct mutex read_mutex;
b31c9d9dc34314 include/linux/hidraw.h Peter Hutterer 2024-08-27 37 bool revoked;
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 38 };
86166b7bcda0bc include/linux/hidraw.h Jiri Kosina 2007-05-14 39 :::::: The code at line 30 was first introduced by commit :::::: 86166b7bcda0bcb53525114fa1c87ac432be478e HID: add hidraw interface
:::::: TO: Jiri Kosina <[email protected]>
:::::: CC: Jiri Kosina <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki