]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/hid: ensure CKI can compile our new tests on old kernels
authorBenjamin Tissoires <bentiss@kernel.org>
Mon, 1 Jul 2024 12:39:49 +0000 (14:39 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Mon, 1 Jul 2024 12:48:03 +0000 (14:48 +0200)
commitfcdf830ea634cf0ee6543b6cd6a4932f92464fc7
treebd14a95f4b17f38a4ee2610f2d5348a82eba21ea
parentd3e15189bfd4d0a9d3a7ad8bd0e6ebb1c0419f93
selftests/hid: ensure CKI can compile our new tests on old kernels

In the same way than commit ae7487d112cf ("selftests/hid: ensure we can
compile the tests on kernels pre-6.3") we should expose struct hid_bpf_ops
when it's not available in vmlinux.h.

So unexpose an eventual struct hid_bpf_ops, include vmlinux.h, and
re-export struct hid_bpf_ops.

Fixes: d7696738d66b ("selftests/hid: convert the hid_bpf selftests with struct_ops")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202406270328.bscLN1IF-lkp@intel.com/
Link: https://patch.msgid.link/20240701-fix-cki-v2-1-20564e2e1393@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/progs/hid_bpf_helpers.h