diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-03-17 13:05:10 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-03-17 18:48:05 -0700 |
commit | c53a3355eb2976fc4eb4d42862db0eea205045a1 (patch) | |
tree | 589d69ed389703a6940e66dbe1ed61a3811f3407 /tools | |
parent | 9ae2c26e43248b722e79fe867be38062c9dd1e5f (diff) | |
download | linux-stable-c53a3355eb2976fc4eb4d42862db0eea205045a1.tar.gz linux-stable-c53a3355eb2976fc4eb4d42862db0eea205045a1.tar.bz2 linux-stable-c53a3355eb2976fc4eb4d42862db0eea205045a1.zip |
selftests/bpf: drop custom NULL #define in skb_pkt_end selftest
Now that bpftool generates NULL definition as part of vmlinux.h, drop custom
NULL definition in skb_pkt_end.c.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20210317200510.1354627-3-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/bpf/progs/skb_pkt_end.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/skb_pkt_end.c b/tools/testing/selftests/bpf/progs/skb_pkt_end.c index cf6823f42e80..7f2eaa2f89f8 100644 --- a/tools/testing/selftests/bpf/progs/skb_pkt_end.c +++ b/tools/testing/selftests/bpf/progs/skb_pkt_end.c @@ -4,7 +4,6 @@ #include <bpf/bpf_core_read.h> #include <bpf/bpf_helpers.h> -#define NULL 0 #define INLINE __always_inline #define skb_shorter(skb, len) ((void *)(long)(skb)->data + (len) > (void *)(long)skb->data_end) |