linux-stable/drivers/hid/bpf
Benjamin Tissoires 764ad6b027 HID: bpf: use __bpf_kfunc instead of noinline
Follow the docs at Documentation/bpf/kfuncs.rst:
- declare the function with `__bpf_kfunc`
- disables missing prototype warnings, which allows to remove them from
  include/linux/hid-bpf.h

Removing the prototypes is not an issue because we currently have to
redeclare them when writing the BPF program. They will eventually be
generated by bpftool directly AFAIU.

Link: https://lore.kernel.org/r/20240124-b4-hid-bpf-fixes-v2-3-052520b1e5e6@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
2024-01-31 10:27:08 +01:00
..
entrypoints bpf: Replace deprecated -target with --target= for Clang 2023-06-29 15:46:17 +02:00
Kconfig
Makefile
hid_bpf_dispatch.c HID: bpf: use __bpf_kfunc instead of noinline 2024-01-31 10:27:08 +01:00
hid_bpf_dispatch.h HID: bpf: remove double fdget() 2024-01-31 10:27:00 +01:00
hid_bpf_jmp_table.c HID: bpf: actually free hdev memory after attaching a HID-BPF program 2024-01-31 10:27:05 +01:00