linux/tools/testing/selftests/hid
Benjamin Tissoires 5d4c6c132e selftests/hid: fix compilation when bpf_wq and hid_device are not exported
This can happen in situations when CONFIG_HID_SUPPORT is set to no, or
some complex situations where struct bpf_wq is not exported.

So do the usual dance of hiding them before including vmlinux.h, and
then redefining them and make use of CO-RE to have the correct offsets.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603111558.KLCIxsZB-lkp@intel.com/
Fixes: fe8d561db3 ("selftests/hid: add wq test for hid_bpf_input_report()")
Cc: stable@vger.kernel.org
Acked-by: Jiri Kosina <jkosina@suse.com>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
2026-03-16 16:21:06 +01:00
..
progs selftests/hid: fix compilation when bpf_wq and hid_device are not exported 2026-03-16 16:21:06 +01:00
tests selftests: hid: tests: test_wacom_generic: add tests for display devices and opaque devices 2026-02-24 09:41:21 +01:00
.gitignore
Makefile selftests/hid: fix bpf compilations due to -fms-extensions 2026-01-07 15:03:49 +01:00
config
config.common
config.x86_64
hid-apple.sh
hid-core.sh
hid-gamepad.sh
hid-ite.sh
hid-keyboard.sh
hid-mouse.sh
hid-multitouch.sh
hid-sony.sh
hid-tablet.sh
hid-usb_crash.sh
hid-wacom.sh
hid_bpf.c
hid_common.h selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
hidraw.c selftests/hid: hidraw: forge wrong ioctls and tests them 2025-09-17 11:37:23 +02:00
run-hid-tools-tests.sh
settings
vmtest.sh