|WARNING| pw121447 [PATCH v3 2/2] net/bnx2x: fix warnings about rte_memcopy lengths
checkpatch at dpdk.org
checkpatch at dpdk.org
Wed Dec 28 11:28:13 CET 2022
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/121447
_coding style issues_
WARNING:LEADING_SPACE: please, no spaces at the start of a line
#82: FILE: drivers/net/bnx2x/bnx2x_stats.c:822:
+ rte_memcpy((struct mac_stx *)&(estats->rx_stat_ifhcinbadoctets_hi), &(pstats->mac_stx[1]),$
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around estats->rx_stat_ifhcinbadoctets_hi
#82: FILE: drivers/net/bnx2x/bnx2x_stats.c:822:
+ rte_memcpy((struct mac_stx *)&(estats->rx_stat_ifhcinbadoctets_hi), &(pstats->mac_stx[1]),
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around pstats->mac_stx[1]
#82: FILE: drivers/net/bnx2x/bnx2x_stats.c:822:
+ rte_memcpy((struct mac_stx *)&(estats->rx_stat_ifhcinbadoctets_hi), &(pstats->mac_stx[1]),
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around sc->port.old_nig_stats.egress_mac_pkt0_lo
#91: FILE: drivers/net/bnx2x/bnx2x_stats.c:1495:
+ (uint32_t *)&(sc->port.old_nig_stats.egress_mac_pkt0_lo), 2);
CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around sc->port.old_nig_stats.egress_mac_pkt1_lo
#94: FILE: drivers/net/bnx2x/bnx2x_stats.c:1497:
+ (uint32_t *)&(sc->port.old_nig_stats.egress_mac_pkt1_lo), 2);
total: 0 errors, 1 warnings, 4 checks, 27 lines checked
More information about the test-report
mailing list