[dpdk-dev] Fwd: |WARNING| [PATCH] nfp: report link speed using hardware info

Alejandro Lucero alejandro.lucero at netronome.com
Fri Nov 18 16:10:49 CET 2016

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
Am I doing anything wrong when using checkpatches.sh?

---------- Forwarded message ----------
From: <checkpatch at dpdk.org>
Date: Fri, Nov 18, 2016 at 3:04 PM
Subject: |WARNING| [PATCH] nfp: report link speed using hardware info
To: test-report at dpdk.org
Cc: Alejandro Lucero <alejandro.lucero at netronome.com>

Test-Label: checkpatch
Test-Status: WARNING

_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

More information about the dev mailing list