Thread (2 messages) flat view 2 messages, 2 authors, 2018-10-04
STALE2905d

[PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined

From: Bo YU <hidden>
Date: 2018-10-03 20:51:24
Subsystem: bpf [general] (safe dynamic programs and tools), the rest · Maintainers: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi, Linus Torvalds

There is a warning when compiling bpf program in sample/bpf

BTW,i get the warning from David's net tree, then i git clone
bpf tree try to compile bpf program,but it tell me failed to
do that maybe i was not compile the whole kernel once.
I don't know this is ok or not.

Signed-off-by: Bo YU <redacted>
---
 samples/bpf/tracex3_user.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/samples/bpf/tracex3_user.c b/samples/bpf/tracex3_user.c
index 6c6b10f4c3ee..3d8c39b8ef24 100644
--- a/samples/bpf/tracex3_user.c
+++ b/samples/bpf/tracex3_user.c
@@ -17,7 +17,6 @@
 #include "bpf_load.h"
 #include "bpf_util.h"

-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))

 #define SLOTS 100
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help