[dpdk-test-report] |WARNING| pw57981 [PATCH v1 06/13] net/ppfe: add MAC and host interface initialisation

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Aug 26 15:18:06 CEST 2019


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/57981

_coding style issues_


ERROR:SPACING: space required before the open brace '{'
#367: FILE: drivers/net/ppfe/pfe_hal.c:172:
+	} else{

WARNING:BRACES: braces {} are not necessary for any arm of this statement
#646: FILE: drivers/net/ppfe/pfe_hal.c:451:
+	if (pfe_svr == SVR_LS1012A_REV1) {
[...]
+	} else {
[...]

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'd' - possible side-effects?
#809: FILE: drivers/net/ppfe/pfe_hif.c:11:
+#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))

WARNING:UNNECESSARY_INT: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary
#922: FILE: drivers/net/ppfe/pfe_hif.c:124:
+	lmem_virt_addr = (void *)CBUS_PFE_TO_VIRT((unsigned long int)lmem_ptr);

WARNING:UNNECESSARY_INT: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary
#940: FILE: drivers/net/ppfe/pfe_hif.c:142:
+	writel((unsigned long int)lmem_ptr, CLASS_INQ_PKTPTR);

total: 1 errors, 3 warnings, 1 checks, 1508 lines checked


More information about the test-report mailing list