From patchwork Wed Oct 3 14:02:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bo YU X-Patchwork-Id: 978342 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Rrf3J8Bh"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42QHly1ycyz9vZs for ; Thu, 4 Oct 2018 00:02:53 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbeJCUvY (ORCPT ); Wed, 3 Oct 2018 16:51:24 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=BOe4Nhu6Op8NAKYjw6tdX/Ix9vlW3wgoBUTN9roZlWw=; b=Rrf3J8Bh1Ok5Te+1LYuCexBy491mUda24gMikX6lWMo+TtBh3i3wITEUY6RzkTQXr1 L2g8nyC4D/tNh76Wav+At0V2skhRRp/kCnOWPccvjblLRGpueWFDVQTIeKiUvSrfAdAc 5UiPL2LVG66zquiskL03haIqWFN5zK+0v486H4k7unlVZ9xrjA1CIXnN+KWmFYvNr8RJ ivT970+iBYjQH0vv/B90QyHMJ6I0iRq0smdxagZMS9nByw+80rS41J1tIhTp5hVnblHd P/G2/D13JOXKFZqAwcNPsQp16ZkQiqKEUC6QmNPIe/PMbjBuAQVgLz0g0V7V3zf8dhBB DcIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:user-agent; bh=BOe4Nhu6Op8NAKYjw6tdX/Ix9vlW3wgoBUTN9roZlWw=; b=WZDHAcHuFLvAjkxJuSx/XsDxP/K7hvE6DEAUc8A2QzbczDxguTz2bb4oICPruKYWHC c7ibH8Y0VM63CaaXvPYNj+oUqni1vsmsOmZhrwtK7mjJYpaGUMsF470bqpeRGLP4KOY6 ExavhjrqkHugaaWaJ0JL5YyRx5UthpuXdjSXVQtGCPPRDrU73f91uB7wXnrVKOOkAj0U aUFNSzyouzpH2oihEJ1I0pzp9Fvua+1iKjXxtOQ1jxNgLaYiSZ7yNJH/GiSJ1uUTi80c UzTgFQ/I9Ki76XvqOwQjYzLEcxpIRrkTs5zZ14mPSwrjJHukMUrIbs4xm9b44x5UWaA9 VvgQ== X-Gm-Message-State: ABuFfojwJCzA9fo3QHruvQ5kE3pSwdxB4zIg/pJ5V58TyYA+VohZPFyc ireMWzAtjsZML5SNHfJ5Xpk= X-Google-Smtp-Source: ACcGV623lujKPPFG/vz0kAMY2DvjtZ7ye4ECHd1WuaHNGzQzsDpGAvic36S5b7mt2v/PVMgrhKAjbA== X-Received: by 2002:a62:f553:: with SMTP id n80-v6mr1761125pfh.59.1538575371267; Wed, 03 Oct 2018 07:02:51 -0700 (PDT) Received: from yubo-2 ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id l197-v6sm2321248pga.9.2018.10.03.07.02.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 07:02:50 -0700 (PDT) Date: Wed, 3 Oct 2018 10:02:50 -0400 From: Bo YU 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 Message-ID: <20181003140248.zdvydnelwhw7wcb6@yubo-2> Mail-Followup-To: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net, netdev@vger.kernel.org, yuzibode@126.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180323-221-08f686 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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(-) -- 2.11.0 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