Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/bpf: remove unnecessary kfunc prototypes

Remove unnecessary kfunc prototypes from test programs, these are
provided by vmlinux.h

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20251026203853.135105-2-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Mykyta Yatsenko and committed by
Alexei Starovoitov
a61a257f e7586577

-10
-5
tools/testing/selftests/bpf/progs/ip_check_defrag.c
··· 12 12 #define IP_OFFSET 0x1FFF 13 13 #define NEXTHDR_FRAGMENT 44 14 14 15 - extern int bpf_dynptr_from_skb(struct __sk_buff *skb, __u64 flags, 16 - struct bpf_dynptr *ptr__uninit) __ksym; 17 - extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, uint32_t offset, 18 - void *buffer, uint32_t buffer__sz) __ksym; 19 - 20 15 volatile int shootdowns = 0; 21 16 22 17 static bool is_frag_v4(struct iphdr *iph)
-5
tools/testing/selftests/bpf/progs/verifier_netfilter_ctx.c
··· 79 79 return NF_ACCEPT; 80 80 } 81 81 82 - extern int bpf_dynptr_from_skb(struct __sk_buff *skb, __u64 flags, 83 - struct bpf_dynptr *ptr__uninit) __ksym; 84 - extern void *bpf_dynptr_slice(const struct bpf_dynptr *ptr, uint32_t offset, 85 - void *buffer, uint32_t buffer__sz) __ksym; 86 - 87 82 SEC("netfilter") 88 83 __description("netfilter test prog with skb and state read access") 89 84 __success __failure_unpriv