|WARNING| pw137628 [PATCH 54/71] net/bnx2x: replace use of fixed size rte_memcpy

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Mar 1 00:09:57 CET 2024


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

_coding style issues_


WARNING:LEADING_SPACE: please, no spaces at the start of a line
#181: FILE: drivers/net/bnx2x/bnx2x_stats.c:820:
+    memcpy(old, new, sizeof(struct nig_stats));$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#185: FILE: drivers/net/bnx2x/bnx2x_stats.c:822:
+    memcpy(&(estats->rx_stat_ifhcinbadoctets_hi), &(pstats->mac_stx[1]),$

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around estats->rx_stat_ifhcinbadoctets_hi
#185: FILE: drivers/net/bnx2x/bnx2x_stats.c:822:
+    memcpy(&(estats->rx_stat_ifhcinbadoctets_hi), &(pstats->mac_stx[1]),

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around pstats->mac_stx[1]
#185: FILE: drivers/net/bnx2x/bnx2x_stats.c:822:
+    memcpy(&(estats->rx_stat_ifhcinbadoctets_hi), &(pstats->mac_stx[1]),

ERROR:CODE_INDENT: code indent should use tabs where possible
#186: FILE: drivers/net/bnx2x/bnx2x_stats.c:823:
+           sizeof(struct mac_stx));$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#186: FILE: drivers/net/bnx2x/bnx2x_stats.c:823:
+           sizeof(struct mac_stx));$

total: 1 errors, 3 warnings, 2 checks, 125 lines checked


More information about the test-report mailing list