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 selftests/hid: Add host-tools to .gitignore 2024-12-10 12:46:54 +01:00
Makefile selftests/hid: fix bpf compilations due to -fms-extensions 2026-01-07 15:03:49 +01:00
config bpfilter: remove bpfilter 2024-01-04 10:23:10 -08:00
config.common selftests: net: Enable legacy netfilter legacy options. 2025-07-25 18:38:55 +02:00
config.x86_64 selftests: hid: add vmtest.sh 2023-01-18 22:08:38 +01:00
hid-apple.sh selftests: hid: import hid-tools hid-apple tests 2023-04-12 17:13:38 +02:00
hid-core.sh selftests: hid: import hid-tools hid-core tests 2023-04-12 17:13:37 +02:00
hid-gamepad.sh selftests: hid: import hid-tools hid-gamepad tests 2023-04-12 17:13:37 +02:00
hid-ite.sh selftests: hid: import hid-tools hid-ite tests 2023-04-12 17:13:38 +02:00
hid-keyboard.sh selftests: hid: import hid-tools hid-keyboards tests 2023-04-12 17:13:37 +02:00
hid-mouse.sh selftests: hid: import hid-tools hid-mouse tests 2023-04-12 17:13:37 +02:00
hid-multitouch.sh selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
hid-sony.sh selftests: hid: import hid-tools hid-sony and hid-playstation tests 2023-04-12 17:13:38 +02:00
hid-tablet.sh selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
hid-usb_crash.sh selftests: hid: import hid-tools usb-crash tests 2023-04-12 17:13:38 +02:00
hid-wacom.sh selftests: hid: import hid-tools wacom tests 2023-04-12 17:13:38 +02:00
hid_bpf.c Revert "HID: bpf: allow write access to quirks field in struct hid_device" 2024-11-25 09:21:47 -08:00
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 selftests: hid: fix typo and exit code 2024-11-28 14:43:49 +01:00
settings selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
vmtest.sh selftests/hid: update vmtest.sh for virtme-ng 2025-09-17 11:35:39 +02:00