lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181003140248.zdvydnelwhw7wcb6@yubo-2>
Date:   Wed, 3 Oct 2018 10:02:50 -0400
From:   Bo YU <tsu.yubo@...il.com>
To:     ast@...nel.org, daniel@...earbox.net, davem@...emloft.net,
        netdev@...r.kernel.org, yuzibode@....com
Subject: [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined

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@...il.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

--
2.11.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ