aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2024-07-19 09:51:07 +0000
committerBenjamin Tissoires <[email protected]>2024-07-22 14:52:05 +0000
commitbacc15e010fc5a235fb2020b06a29a9961b5db82 (patch)
tree8d75d364e3501d3d4863efc3bcb2009dba9a80bf /scripts/generate_rust_target.rs
parentHID: wacom: more appropriate tool type categorization (diff)
downloadkernel-bacc15e010fc5a235fb2020b06a29a9961b5db82.tar.gz
kernel-bacc15e010fc5a235fb2020b06a29a9961b5db82.zip
hid: bpf: add BPF_JIT dependency
The module does not do anything when the JIT is disabled, but instead causes a warning: In file included from include/linux/bpf_verifier.h:7, from drivers/hid/bpf/hid_bpf_struct_ops.c:10: drivers/hid/bpf/hid_bpf_struct_ops.c: In function 'hid_bpf_struct_ops_init': include/linux/bpf.h:1853:50: error: statement with no effect [-Werror=unused-value] 1853 | #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) | ^~~~~~~~~~~~~~~~ drivers/hid/bpf/hid_bpf_struct_ops.c:305:16: note: in expansion of macro 'register_bpf_struct_ops' 305 | return register_bpf_struct_ops(&bpf_hid_bpf_ops, hid_bpf_ops); | ^~~~~~~~~~~~~~~~~~~~~~~ Add a Kconfig dependency to only allow building the HID-BPF support when a JIT is enabled. Fixes: ebc0d8093e8c ("HID: bpf: implement HID-BPF through bpf_struct_ops") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions