From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bo YU Subject: [PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined Date: Wed, 3 Oct 2018 10:02:50 -0400 Message-ID: <20181003140248.zdvydnelwhw7wcb6@yubo-2> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed To: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net, netdev@vger.kernel.org, yuzibode@126.com Return-path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:46514 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726806AbeJCUvY (ORCPT ); Wed, 3 Oct 2018 16:51:24 -0400 Received: by mail-pg1-f196.google.com with SMTP id a5-v6so1604867pgv.13 for ; Wed, 03 Oct 2018 07:02:51 -0700 (PDT) Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: 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 --- 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