Files
erofs-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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: fe8d561db3 ("selftests/hid: add wq test for hid_bpf_input_report()")
Cc: [email protected]
Acked-by: Jiri Kosina <[email protected]>
Reviewed-by: Thomas Weißschuh <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
2026-03-16 16:21:06 +01:00
..
2024-01-04 10:23:10 -08:00
…