* [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined
@ 2018-10-03 14:02 Bo YU
2018-10-04 14:33 ` Daniel Borkmann
0 siblings, 1 reply; 2+ messages in thread
From: Bo YU @ 2018-10-03 14:02 UTC (permalink / raw)
To: ast, daniel, davem, netdev, yuzibode
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 <tsu.yubo@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined
2018-10-03 14:02 [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined Bo YU
@ 2018-10-04 14:33 ` Daniel Borkmann
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2018-10-04 14:33 UTC (permalink / raw)
To: ast, davem, netdev, yuzibode
On 10/03/2018 04:02 PM, Bo YU wrote:
> 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 <tsu.yubo@gmail.com>
Seeing the same, therefore applied to bpf-next with commit message
fixed up a bit, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-04 21:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-03 14:02 [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined Bo YU
2018-10-04 14:33 ` Daniel Borkmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.