From: Bo YU <tsu.yubo@gmail.com>
To: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net,
netdev@vger.kernel.org, yuzibode@126.com
Subject: [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined
Date: Wed, 3 Oct 2018 10:02:50 -0400 [thread overview]
Message-ID: <20181003140248.zdvydnelwhw7wcb6@yubo-2> (raw)
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
next reply other threads:[~2018-10-03 20:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-03 14:02 Bo YU [this message]
2018-10-04 14:33 ` [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined Daniel Borkmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181003140248.zdvydnelwhw7wcb6@yubo-2 \
--to=tsu.yubo@gmail.com \
--cc=ast@kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=yuzibode@126.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox