Skip to content

Commit a61a257

Browse files
mykyta5Alexei Starovoitov
authored andcommitted
selftests/bpf: remove unnecessary kfunc prototypes
Remove unnecessary kfunc prototypes from test programs, these are provided by vmlinux.h Signed-off-by: Mykyta Yatsenko <[email protected]> Acked-by: Eduard Zingerman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent e758657 commit a61a257

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

tools/testing/selftests/bpf/progs/ip_check_defrag.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
#define IP_OFFSET 0x1FFF
1313
#define NEXTHDR_FRAGMENT 44
1414

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-
2015
volatile int shootdowns = 0;
2116

2217
static bool is_frag_v4(struct iphdr *iph)

tools/testing/selftests/bpf/progs/verifier_netfilter_ctx.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ int with_invalid_ctx_access_test5(struct bpf_nf_ctx *ctx)
7979
return NF_ACCEPT;
8080
}
8181

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-
8782
SEC("netfilter")
8883
__description("netfilter test prog with skb and state read access")
8984
__success __failure_unpriv

0 commit comments

Comments
 (0)