|WARNING| pw140543 [PATCH v2 3/4] lib/ethdev: add support for displaying lanes capability

checkpatch at dpdk.org checkpatch at dpdk.org
Sun Jun 2 04:47:28 CEST 2024


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

_coding style issues_


ERROR:CODE_INDENT: code indent should use tabs where possible
#159: FILE: lib/ethdev/rte_ethdev.c:7027:
+        struct rte_eth_dev *dev;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#159: FILE: lib/ethdev/rte_ethdev.c:7027:
+        struct rte_eth_dev *dev;$

ERROR:CODE_INDENT: code indent should use tabs where possible
#161: FILE: lib/ethdev/rte_ethdev.c:7029:
+        RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#161: FILE: lib/ethdev/rte_ethdev.c:7029:
+        RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);$

ERROR:CODE_INDENT: code indent should use tabs where possible
#162: FILE: lib/ethdev/rte_ethdev.c:7030:
+        dev = &rte_eth_devices[port_id];$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#162: FILE: lib/ethdev/rte_ethdev.c:7030:
+        dev = &rte_eth_devices[port_id];$

ERROR:CODE_INDENT: code indent should use tabs where possible
#164: FILE: lib/ethdev/rte_ethdev.c:7032:
+        if (*dev->dev_ops->speed_lanes_get == NULL)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#164: FILE: lib/ethdev/rte_ethdev.c:7032:
+        if (*dev->dev_ops->speed_lanes_get == NULL)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#165: FILE: lib/ethdev/rte_ethdev.c:7033:
+                return -ENOTSUP;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#165: FILE: lib/ethdev/rte_ethdev.c:7033:
+                return -ENOTSUP;$

ERROR:CODE_INDENT: code indent should use tabs where possible
#166: FILE: lib/ethdev/rte_ethdev.c:7034:
+        return eth_err(port_id, (*dev->dev_ops->speed_lanes_get_capa)(dev, speed_lanes_bmap));$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#166: FILE: lib/ethdev/rte_ethdev.c:7034:
+        return eth_err(port_id, (*dev->dev_ops->speed_lanes_get_capa)(dev, speed_lanes_bmap));$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#185: FILE: lib/ethdev/rte_ethdev.h:316:
+#define LANE_2 ^IRTE_BIT32(2)$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#186: FILE: lib/ethdev/rte_ethdev.h:317:
+#define LANE_4 ^IRTE_BIT32(4)$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#187: FILE: lib/ethdev/rte_ethdev.h:318:
+#define LANE_8 ^IRTE_BIT32(8)$

total: 6 errors, 9 warnings, 103 lines checked


More information about the test-report mailing list