Skip to content

Commit

Permalink
selftests/bpf: drop custom NULL #define in skb_pkt_end selftest
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrii Nakryiko authored and Alexei Starovoitov committed Mar 18, 2021
1 parent 9ae2c26 commit c53a335
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/testing/selftests/bpf/progs/skb_pkt_end.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c53a335

Please sign in to comment.