From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id CBE7254AF for ; Fri, 18 Nov 2016 16:24:31 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP; 18 Nov 2016 07:24:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,510,1473145200"; d="scan'208";a="32853946" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.57]) ([10.237.220.57]) by orsmga005.jf.intel.com with ESMTP; 18 Nov 2016 07:24:29 -0800 To: Alejandro Lucero , Thomas Monjalon , dev References: <1479481467-29431-1-git-send-email-alejandro.lucero@netronome.com> <20161118150433.AD575558B@dpdk.org> From: Ferruh Yigit Message-ID: Date: Fri, 18 Nov 2016 15:24:28 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] Fwd: |WARNING| [PATCH] nfp: report link speed using hardware info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2016 15:24:32 -0000 On 11/18/2016 3:10 PM, Alejandro Lucero wrote: > Hi Thomas, > > I got this email when sending a patch some minutes ago. > > The point is I trusted script/checkpatches.sh which did not report those > warnings. > Am I doing anything wrong when using checkpatches.sh? I am also getting same warnings as below, this can be related to the checkpatch.pl version. I have: Version: 0.32 (./scripts/checkpatch.pl --version) > > > ---------- Forwarded message ---------- > From: > Date: Fri, Nov 18, 2016 at 3:04 PM > Subject: |WARNING| [PATCH] nfp: report link speed using hardware info > To: test-report@dpdk.org > Cc: Alejandro Lucero > > > Test-Label: checkpatch > Test-Status: WARNING > http://dpdk.org/patch/17091 > > _coding style issues_ > > > CHECK:MACRO_ARG_REUSE: Macro argument reuse 'arr' - possible side-effects? > #53: FILE: drivers/net/nfp/nfp_net.c:806: > +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) > > CHECK:BRACES: Blank lines aren't necessary after an open brace '{' > #91: FILE: drivers/net/nfp/nfp_net.c:856: > + else { > + > > total: 0 errors, 0 warnings, 2 checks, 68 lines checked >