From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: Fwd: |WARNING| [PATCH] nfp: report link speed using hardware info Date: Fri, 18 Nov 2016 15:24:28 +0000 Message-ID: References: <1479481467-29431-1-git-send-email-alejandro.lucero@netronome.com> <20161118150433.AD575558B@dpdk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Alejandro Lucero , Thomas Monjalon , dev 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) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 >