automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Anatoly Burakov <anatoly.burakov@intel.com>
Subject: |WARNING| pw140463 [PATCH v3 25/30] net/ixgbe/base: enable E610 device support
Date: Thu, 30 May 2024 13:21:16 +0200 (CEST)	[thread overview]
Message-ID: <20240530112116.3A55412367B@dpdk.org> (raw)
In-Reply-To: <d1c67156f7df818d0298597c0bd1524469ab2ad1.1717067519.git.anatoly.burakov@intel.com>

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

_coding style issues_


ERROR:POINTER_LOCATION: "foo* bar" should be "foo *bar"
#229: FILE: drivers/net/ixgbe/base/ixgbe_api.c:1740:
+s32 ixgbe_get_nvm_ver(struct ixgbe_hw* hw, struct ixgbe_nvm_info *nvm)

CHECK:AVOID_EXTERNS: extern prototypes should be avoided in .h files
#249: FILE: drivers/net/ixgbe/base/ixgbe_api.h:21:
+extern s32 ixgbe_init_ops_E610(struct ixgbe_hw *hw);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#376: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:408:
+ * ixgbe_aci_get_fw_ver - get the firmware version

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#379: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:411:
+ * Get the firmware version using ACI command (0x0001).

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#383: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:415:
+s32 ixgbe_aci_get_fw_ver(struct ixgbe_hw *hw)

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#385: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:417:
+	struct ixgbe_aci_cmd_get_ver *resp;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#386: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:418:
+	struct ixgbe_aci_desc desc;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#391: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:423:
+	ixgbe_fill_dflt_direct_cmd_desc(&desc, ixgbe_aci_opc_get_ver);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#393: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:425:
+	status = ixgbe_aci_send_cmd(hw, &desc, NULL, 0);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#411: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:443:
+ * ixgbe_aci_send_driver_ver - send the driver version to firmware

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#416: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:448:
+ * using the ACI command (0x0002).

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#421: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:453:
+s32 ixgbe_aci_send_driver_ver(struct ixgbe_hw *hw, struct ixgbe_driver_ver *dv)

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#423: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:455:
+	struct ixgbe_aci_cmd_driver_ver *cmd;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#424: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:456:
+	struct ixgbe_aci_desc desc;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#432: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:464:
+	ixgbe_fill_dflt_direct_cmd_desc(&desc, ixgbe_aci_opc_driver_ver);

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#434: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:466:
+	desc.flags |= IXGBE_CPU_TO_LE16(IXGBE_ACI_FLAG_RD);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#445: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:477:
+	return ixgbe_aci_send_cmd(hw, &desc, dv->driver_string, len);

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#505: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2113:
+    }$

WARNING:BRACES: braces {} are not necessary for single statement blocks
#548: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2156:
+	if (!start) {
+		return IXGBE_ERR_PARAM;
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#709: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2317:
+	if (status) {
+		return status;
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#718: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2326:
+	if (status) {
+		return status;
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#723: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2331:
+	if (status) {
+		return status;
+	}

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#773: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2399:
+ * ixgbe_read_sr_buf_aci - Reads Shadow RAM buf via ACI

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#773: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2399:
+ * ixgbe_read_sr_buf_aci - Reads Shadow RAM buf via ACI

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#784: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2410:
+s32 ixgbe_read_sr_buf_aci(struct ixgbe_hw *hw, u16 offset, u16 *words,

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#845: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2586:
+	mac->ops.get_fw_version = ixgbe_aci_get_fw_ver;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#858: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2599:
+	eeprom->ops.read = ixgbe_read_ee_aci_E610;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#859: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2600:
+	eeprom->ops.read_buffer = ixgbe_read_ee_aci_buffer_E610;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1032: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2836:
+	struct ixgbe_aci_cmd_get_phy_caps_data pcaps;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1036: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2840:
+	rc = ixgbe_aci_get_phy_caps(hw, false, IXGBE_ACI_REPORT_TOPO_CAP_MEDIA,

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1036: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2840:
+	rc = ixgbe_aci_get_phy_caps(hw, false, IXGBE_ACI_REPORT_TOPO_CAP_MEDIA,

ERROR:SPACING: space required before the open parenthesis '('
#1042: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2846:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_10GBASE_T)

ERROR:SPACING: space required before the open parenthesis '('
#1044: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2848:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_1000BASE_T)

ERROR:SPACING: space required before the open parenthesis '('
#1046: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2850:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_100BASE_TX)

ERROR:SPACING: space required before the open parenthesis '('
#1048: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2852:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_10GBASE_LR)

ERROR:SPACING: space required before the open parenthesis '('
#1050: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2854:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_10GBASE_SR)

ERROR:SPACING: space required before the open parenthesis '('
#1052: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2856:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_1000BASE_KX)

ERROR:SPACING: space required before the open parenthesis '('
#1054: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2858:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_10GBASE_KR_CR1)

ERROR:SPACING: space required before the open parenthesis '('
#1056: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2860:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_1000BASE_SX)

ERROR:SPACING: space required before the open parenthesis '('
#1058: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2862:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_2500BASE_KX)

ERROR:SPACING: space required before the open parenthesis '('
#1060: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2864:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_2500BASE_T)

ERROR:SPACING: space required before the open parenthesis '('
#1062: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2866:
+	if(phy_type & IXGBE_PHY_TYPE_LOW_5GBASE_T)

ERROR:SPACING: space required before the open parenthesis '('
#1066: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:2870:
+	if(phy_type & IXGBE_PHY_TYPE_HIGH_10BASE_T)

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1089: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3154:
+ * Send driver version number to Firmware using ACI command (0x0002).

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1094: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3159:
+ * IXGBE_ERR_ACI_ERROR - encountered an error during sending the command

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1095: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3160:
+ * IXGBE_ERR_ACI_TIMEOUT - a timeout occurred

WARNING:MINMAX: min() should probably be min_t(u16, len, IXGBE_DRV_VER_STR_LEN_E610)
#1101: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3166:
+	size_t limited_len = min(len, (u16)IXGBE_DRV_VER_STR_LEN_E610);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1117: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3182:
+	return ixgbe_aci_send_driver_ver(hw, &dv);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1138: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3237:
+	struct ixgbe_aci_cmd_get_phy_caps_data phy_caps = { 0 };

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1139: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3238:
+	struct ixgbe_aci_cmd_set_phy_cfg_data phy_cfg = { 0 };

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1143: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3242:
+	status = ixgbe_aci_get_phy_caps(hw, false,

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1144: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3243:
+		IXGBE_ACI_REPORT_ACTIVE_CFG, &phy_caps);

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1150: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3249:
+	phy_cfg.caps |= IXGBE_ACI_PHY_ENA_LINK;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1151: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3250:
+	phy_cfg.caps |= IXGBE_ACI_PHY_ENA_AUTO_LINK_UPDT;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1155: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3254:
+			eee_cap |= IXGBE_ACI_PHY_EEE_EN_100BASE_TX;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1157: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3256:
+			eee_cap |= IXGBE_ACI_PHY_EEE_EN_1000BASE_T;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1159: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3258:
+			eee_cap |= IXGBE_ACI_PHY_EEE_EN_1000BASE_KX;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1161: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3260:
+			eee_cap |= IXGBE_ACI_PHY_EEE_EN_10GBASE_T;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1163: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3262:
+			eee_cap |= IXGBE_ACI_PHY_EEE_EN_10GBASE_KR;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1167: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3266:
+			eee_cap |= IXGBE_ACI_PHY_EEE_EN_25GBASE_KR;

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1170: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3269:
+			eee_cap |= IXGBE_ACI_PHY_EEE_EN_10BASE_T;

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1176: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3275:
+	status = ixgbe_aci_set_phy_cfg(hw, &phy_cfg);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1260: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3841:
+ * ixgbe_read_ee_aci_buffer_E610- Read EEPROM word(s) using admin commands.

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1266: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3847:
+ * Reads a 16 bit word(s) from the EEPROM using the ACI.

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1273: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3854:
+s32 ixgbe_read_ee_aci_buffer_E610(struct ixgbe_hw *hw, u16 offset,

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1288: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3869:
+	status = ixgbe_read_sr_buf_aci(hw, offset, &words, data);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1336: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3917:
+	status = ixgbe_read_sr_word_aci(hw, E610_SR_VPD_PTR, &vpd_module);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1341: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3922:
+	status = ixgbe_read_sr_word_aci(hw, E610_SR_PCIE_ALT_AUTO_LOAD_PTR,

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1354: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3935:
+			status = ixgbe_read_sr_buf_aci(hw, i, &words, data);

ERROR:SPACING: space required before the open parenthesis '('
#1377: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3958:
+	if(nvm_acquired)

ERROR:SPACING: space required before the open parenthesis '('
#1381: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:3962:
+	if(!status)

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1415: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4033:
+	status = ixgbe_read_ee_aci_E610(hw, E610_SR_PFA_PTR, &pfa_ptr);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1416: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4034:
+	if (status != IXGBE_SUCCESS) {
+		return status;
+	}

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1419: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4037:
+	status = ixgbe_read_ee_aci_E610(hw, pfa_ptr, &pfa_len);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1420: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4038:
+	if (status != IXGBE_SUCCESS) {
+		return status;
+	}

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1432: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4050:
+		status = ixgbe_read_ee_aci_E610(hw, next_tlv,

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1434: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4052:
+		if (status != IXGBE_SUCCESS) {
+			break;
+		}

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1438: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4056:
+		status = ixgbe_read_ee_aci_E610(hw, next_tlv + 1, &tlv_len);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1439: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4057:
+		if (status != IXGBE_SUCCESS) {
+			break;
+		}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1479: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4097:
+	if (status != IXGBE_SUCCESS) {
+		return status;
+	}

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1484: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4102:
+	status = ixgbe_read_ee_aci_E610(hw, (pba_tlv + 2), &pba_size);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1485: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4103:
+	if (status != IXGBE_SUCCESS) {
+		return status;
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1489: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4107:
+	if (pba_tlv_len < pba_size) {
+		return IXGBE_ERR_INVAL_SIZE;
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1497: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4115:
+	if (pba_num_size < (((u32)pba_size * 2) + 1)) {
+		return IXGBE_ERR_PARAM;
+	}

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1502: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4120:
+		status = ixgbe_read_ee_aci_E610(hw, (pba_tlv + 2 + 1) + i,

WARNING:BRACES: braces {} are not necessary for single statement blocks
#1504: FILE: drivers/net/ixgbe/base/ixgbe_e610.c:4122:
+		if (status != IXGBE_SUCCESS) {
+			return status;
+		}

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1523: FILE: drivers/net/ixgbe/base/ixgbe_e610.h:21:
+s32 ixgbe_aci_get_fw_ver(struct ixgbe_hw *hw);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1524: FILE: drivers/net/ixgbe/base/ixgbe_e610.h:22:
+s32 ixgbe_aci_send_driver_ver(struct ixgbe_hw *hw, struct ixgbe_driver_ver *dv);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1535: FILE: drivers/net/ixgbe/base/ixgbe_e610.h:75:
+s32 ixgbe_read_sr_buf_aci(struct ixgbe_hw *hw, u16 offset, u16 *words, u16 *data);

WARNING:TYPO_SPELLING: 'aci' may be misspelled - perhaps ''?
#1570: FILE: drivers/net/ixgbe/base/ixgbe_e610.h:123:
+s32 ixgbe_read_ee_aci_buffer_E610(struct ixgbe_hw *hw, u16 offset,

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'hw->mac.type == ixgbe_mac_X550'
#1649: FILE: drivers/net/ixgbe/base/ixgbe_phy.c:803:
+	if ((hw->mac.type == ixgbe_mac_X550) ||
+	    (hw->mac.type == ixgbe_mac_E610)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'hw->mac.type == ixgbe_mac_E610'
#1649: FILE: drivers/net/ixgbe/base/ixgbe_phy.c:803:
+	if ((hw->mac.type == ixgbe_mac_X550) ||
+	    (hw->mac.type == ixgbe_mac_E610)) {

WARNING:FUNCTION_ARGUMENTS: function definition argument 'struct ixgbe_hw *' should also have an identifier name
#1686: FILE: drivers/net/ixgbe/base/ixgbe_type.h:3946:
+	s32 (*read_pba_string)(struct ixgbe_hw *, u8 *, u32);

WARNING:FUNCTION_ARGUMENTS: function definition argument 'u8 *' should also have an identifier name
#1686: FILE: drivers/net/ixgbe/base/ixgbe_type.h:3946:
+	s32 (*read_pba_string)(struct ixgbe_hw *, u8 *, u32);

WARNING:FUNCTION_ARGUMENTS: function definition argument 'u32' should also have an identifier name
#1686: FILE: drivers/net/ixgbe/base/ixgbe_type.h:3946:
+	s32 (*read_pba_string)(struct ixgbe_hw *, u8 *, u32);

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#1734: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:113:
+#define E610_GET_PFA_POINTER_IN_WORDS(offset)				    \
+    ((offset & E610_SR_POINTER_TYPE_BIT) == E610_SR_POINTER_TYPE_BIT) ?     \
+        ((offset & E610_SR_POINTER_MASK) * E610_SR_HALF_4KB_SECTOR_UNITS) : \
+        (offset & E610_SR_POINTER_MASK)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'offset' - possible side-effects?
#1734: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:113:
+#define E610_GET_PFA_POINTER_IN_WORDS(offset)				    \
+    ((offset & E610_SR_POINTER_TYPE_BIT) == E610_SR_POINTER_TYPE_BIT) ?     \
+        ((offset & E610_SR_POINTER_MASK) * E610_SR_HALF_4KB_SECTOR_UNITS) : \
+        (offset & E610_SR_POINTER_MASK)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'offset' may be better as '(offset)' to avoid precedence issues
#1734: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:113:
+#define E610_GET_PFA_POINTER_IN_WORDS(offset)				    \
+    ((offset & E610_SR_POINTER_TYPE_BIT) == E610_SR_POINTER_TYPE_BIT) ?     \
+        ((offset & E610_SR_POINTER_MASK) * E610_SR_HALF_4KB_SECTOR_UNITS) : \
+        (offset & E610_SR_POINTER_MASK)

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#1735: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:114:
+    ((offset & E610_SR_POINTER_TYPE_BIT) == E610_SR_POINTER_TYPE_BIT) ?     \$

ERROR:CODE_INDENT: code indent should use tabs where possible
#1736: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:115:
+        ((offset & E610_SR_POINTER_MASK) * E610_SR_HALF_4KB_SECTOR_UNITS) : \$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#1736: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:115:
+        ((offset & E610_SR_POINTER_MASK) * E610_SR_HALF_4KB_SECTOR_UNITS) : \$

ERROR:CODE_INDENT: code indent should use tabs where possible
#1737: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:116:
+        (offset & E610_SR_POINTER_MASK)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#1737: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:116:
+        (offset & E610_SR_POINTER_MASK)$

WARNING:BLOCK_COMMENT_STYLE: Block comments use * on subsequent lines
#1762: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:141:
+/* These macros strip from NVM Image Revision the particular part of NVM ver:
+   major ver, minor ver and image id */

WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
#1762: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:141:
+   major ver, minor ver and image id */

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'x' may be better as '(x)' to avoid precedence issues
#1763: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:142:
+#define E610_NVM_MAJOR_VER(x)	((x & 0xF000) >> 12)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'x' may be better as '(x)' to avoid precedence issues
#1764: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:143:
+#define E610_NVM_MINOR_VER(x)	(x & 0x00FF)

WARNING:TYPO_SPELLING: 'PRES' may be misspelled - perhaps 'PRESS'?
#1791: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:250:
+#define GLNVM_GENS_NVM_PRES_S			0

WARNING:TYPO_SPELLING: 'PRES' may be misspelled - perhaps 'PRESS'?
#1792: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:251:
+#define GLNVM_GENS_NVM_PRES_M			BIT(0)

WARNING:TYPO_SPELLING: 'ACI' may be misspelled - perhaps ''?
#1809: FILE: drivers/net/ixgbe/base/ixgbe_type_e610.h:277:
+/* Admin Command Interface (ACI) defines */

total: 18 errors, 85 warnings, 7 checks, 1641 lines checked

           reply	other threads:[~2024-05-30 11:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <d1c67156f7df818d0298597c0bd1524469ab2ad1.1717067519.git.anatoly.burakov@intel.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240530112116.3A55412367B@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=anatoly.burakov@intel.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).