linux/include
Dave Marchevsky 15fb6f2b6c bpf: Add __bpf_hook_{start,end} macros
Not all uses of __diag_ignore_all(...) in BPF-related code in order to
suppress warnings are wrapping kfunc definitions. Some "hook point"
definitions - small functions meant to be used as attach points for
fentry and similar BPF progs - need to suppress -Wmissing-declarations.

We could use __bpf_kfunc_{start,end}_defs added in the previous patch in
such cases, but this might be confusing to someone unfamiliar with BPF
internals. Instead, this patch adds __bpf_hook_{start,end} macros,
currently having the same effect as __bpf_kfunc_{start,end}_defs, then
uses them to suppress warnings for two hook points in the kernel itself
and some bpf_testmod hook points as well.

Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Cc: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20231031215625.2343848-2-davemarchevsky@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-11-01 22:33:53 -07:00
..
acpi
asm-generic asm-generic updates for v6.7 2023-11-01 15:28:33 -10:00
clocksource
crypto
drm Merge tag 'drm-misc-next-2023-10-27' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2023-10-31 10:47:50 +10:00
dt-bindings SoC driver updates for 6.7 2023-11-01 14:46:51 -10:00
keys
kunit
kvm
linux bpf: Add __bpf_hook_{start,end} macros 2023-11-01 22:33:53 -07:00
math-emu
media
memory
misc
net Follow up to networking PR for 6.7 2023-11-01 16:33:20 -10:00
pcmcia
ras
rdma
rv
scsi ATA changes for 6.7-rc1 2023-11-01 12:50:12 -10:00
soc SoC driver updates for 6.7 2023-11-01 14:46:51 -10:00
sound
target
trace asm-generic updates for v6.7 2023-11-01 15:28:33 -10:00
uapi Follow up to networking PR for 6.7 2023-11-01 16:33:20 -10:00
ufs
vdso
video
xen