bpf: Add __bpf_kfunc tag to all kfuncs
authorDavid Vernet <void@manifault.com>
Wed, 1 Feb 2023 17:30:15 +0000 (11:30 -0600)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 1 Feb 2023 23:25:14 +0000 (00:25 +0100)
commit400031e05adfcef9e80eca80bdfc3f4b63658be4
treefcac625bc35298cd1182e4415fea360573b69b8b
parent98e6ab7a04353c95b1f4bad345d156ded865fd96
bpf: Add __bpf_kfunc tag to all kfuncs

Now that we have the __bpf_kfunc tag, we should use add it to all
existing kfuncs to ensure that they'll never be elided in LTO builds.

Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230201173016.342758-4-void@manifault.com
15 files changed:
kernel/bpf/cpumask.c
kernel/bpf/helpers.c
kernel/cgroup/rstat.c
kernel/kexec_core.c
kernel/trace/bpf_trace.c
net/bpf/test_run.c
net/core/xdp.c
net/ipv4/tcp_bbr.c
net/ipv4/tcp_cong.c
net/ipv4/tcp_cubic.c
net/ipv4/tcp_dctcp.c
net/netfilter/nf_conntrack_bpf.c
net/netfilter/nf_nat_bpf.c
net/xfrm/xfrm_interface_bpf.c
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c