libbpf-tools: remove unecessary custom NULL definitions
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 26 Mar 2021 06:56:40 +0000 (23:56 -0700)
committeryonghong-song <ys114321@gmail.com>
Thu, 1 Apr 2021 17:20:26 +0000 (10:20 -0700)
Now that libbpf defines NULL in bpf_helpers.h, there is no need for tools to
re-define NULL.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
libbpf-tools/biostacks.bpf.c
libbpf-tools/xfsslower.bpf.c

index 6ed0bda6255d67f2135330a533ab02081e9f8390..f02a1ac5ec21d6ba56ebfe3ab63520bc24d8bb76 100644 (file)
@@ -9,7 +9,6 @@
 #include "maps.bpf.h"
 
 #define MAX_ENTRIES    10240
-#define NULL           0
 
 const volatile bool targ_ms = false;
 const volatile dev_t targ_dev = -1;
index 2b1c6e4b70ade2715dac4420cc082d1b00d5f887..05962f4695bd10fb1a7a8fb5b30ce1b2aeb581ff 100644 (file)
@@ -6,8 +6,6 @@
 #include <bpf/bpf_tracing.h>
 #include "xfsslower.h"
 
-#define NULL   0
-
 const volatile pid_t targ_tgid = 0;
 const volatile __u64 min_lat = 0;