Skip to content
Commit 9a783139 authored by Alistair Francis's avatar Alistair Francis Committed by Alexei Starovoitov
Browse files

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: default avatarAlistair Francis <alistair.francis@wdc.com>
Link: https://lore.kernel.org/r/20241104060300.421403-1-alistair.francis@wdc.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent f2daa5a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment