HID: initial BPF implementation
Quoted 28 lines · kernel test robot
Hi Benjamin,
I love your patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Benjamin-Tissoires/Introduce-eBPF-support-for-HID-devices/20220519-050506 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220519/202205190648.NkMY482n-lkp(a)intel.com/config) compiler: gcc-11 (Debian 11.2.0-20) 11.2.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/a2b23a216f15e0902ffe8575be3f43d4eb463ee0 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Benjamin-Tissoires/Introduce-eBPF-support-for-HID-devices/20220519-050506 git checkout a2b23a216f15e0902ffe8575be3f43d4eb463ee0 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bashIf you fix the issue, kindly add following tag as appropriate
Reported-by kernel test robot <[email protected]>All errors (new ones prefixed by >>):
/usr/bin/ld:drivers/hid/hid-core.o: in function `hid_destroy_device':Quoted 1 line
Quoted 1 line
hid-core.c:(.text+0x10b8): undefined reference to `hid_bpf_destroy_device'
/usr/bin/ld:drivers/hid/hid-core.o: in function `hid_allocate_device':
Quoted 8 lines
Quoted 1 line
Quoted 1 line
hid-core.c:(.text+0x15be): undefined reference to `hid_bpf_device_init'
/usr/bin/ld:drivers/hid/hid-core.o: in function `hid_input_report':Quoted 1 line
Quoted 1 line
hid-core.c:(.text+0x22f5): undefined reference to `dispatch_hid_bpf_device_event'
/usr/bin/ld:drivers/hid/hid-core.o: in function `hid_exit':Quoted 1 line
Quoted 1 line
hid-core.c:(.exit.text+0x7): undefined reference to `hid_bpf_ops'
/usr/bin/ld:drivers/hid/hid-core.o: in function `hid_init':Quoted 1 line
Quoted 1 line
hid-core.c:(.init.text+0x35): undefined reference to `hid_bpf_ops'
collect2: error: ld returned 1 exit status
Thanks for the report. This is a leftover from a previous local version. I should have guarded the definitions against CONFIG_HID_BPF, not just CONFIG_BPF.
Cheers,
Benjamin
Quoted 5 lines
--
0-DAY CI Kernel Test Service
https://01.org/lkp