]> www.infradead.org Git - users/dwmw2/linux.git/commit
bpf: Move btf_type_is_struct_ptr() under CONFIG_BPF_SYSCALL
authorAlistair Francis <alistair23@gmail.com>
Mon, 4 Nov 2024 06:03:00 +0000 (16:03 +1000)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 4 Nov 2024 18:00:39 +0000 (10:00 -0800)
commit9a783139614fb837da4ccb2f8ec6f0ddc802b3d3
tree86b8c608ef24490013d5df2341c2a60315f4c45a
parentf2daa5a577e95f4be4e9ffae17b5bbf1ffe7a852
bpf: Move btf_type_is_struct_ptr() under CONFIG_BPF_SYSCALL

The static inline btf_type_is_struct_ptr() function calls
btf_type_skip_modifiers() which is guarded by CONFIG_BPF_SYSCALL.
btf_type_is_struct_ptr() is also only called by CONFIG_BPF_SYSCALL
ifdef code, so let's only expose btf_type_is_struct_ptr() if
CONFIG_BPF_SYSCALL is defined.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Link: https://lore.kernel.org/r/20241104060300.421403-1-alistair.francis@wdc.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/btf.h