|WARNING| pw114977 [PATCH 20/70] net/ice/base: refactor DDP code

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Aug 15 01:06:58 CEST 2022


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

_coding style issues_


WARNING:TYPO_SPELLING: 'Aslo' may be misspelled - perhaps 'Also'?
#68: 
Aslo added support for DDP signature segments.

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects?
#3172: FILE: drivers/net/ice/base/ice_defs.h:31:
+#define ROUND_UP(a, b)	((b) * DIVIDE_AND_ROUND_UP((a), (b)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_t' - possible side-effects?
#3174: FILE: drivers/net/ice/base/ice_defs.h:33:
+#define MIN_T(_t, _a, _b)	min((_t)(_a), (_t)(_b))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ptr' - possible side-effects?
#3185: FILE: drivers/net/ice/base/ice_defs.h:44:
+#define ice_struct_size(ptr, field, num) \
+	(sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num))

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'field' may be better as '(field)' to avoid precedence issues
#3185: FILE: drivers/net/ice/base/ice_defs.h:44:
+#define ice_struct_size(ptr, field, num) \
+	(sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num))

CHECK:MACRO_ARG_PRECEDENCE: Macro argument '_mem' may be better as '(_mem)' to avoid precedence issues
#3188: FILE: drivers/net/ice/base/ice_defs.h:47:
+#define FLEX_ARRAY_SIZE(_ptr, _mem, cnt) ((cnt) * sizeof(_ptr->_mem[0]))

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#5156: FILE: drivers/net/ice/base/ice_flex_pipe.c:191:
+ *          dont_care:   b0  0  1  1  0  0

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#5163: FILE: drivers/net/ice/base/ice_flex_pipe.c:197:
+ice_gen_key_word(u8 val, u8 valid, u8 dont_care, u8 nvr_mtch, u8 *key,

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#5174: FILE: drivers/net/ice/base/ice_flex_pipe.c:203:
+	/* 'dont_care' and 'nvr_mtch' masks cannot overlap */

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#5175: FILE: drivers/net/ice/base/ice_flex_pipe.c:204:
+	if ((dont_care ^ nvr_mtch) != (dont_care | nvr_mtch))

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#5175: FILE: drivers/net/ice/base/ice_flex_pipe.c:204:
+	if ((dont_care ^ nvr_mtch) != (dont_care | nvr_mtch))

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#5197: FILE: drivers/net/ice/base/ice_flex_pipe.c:218:
+		} else if (dont_care & 0x1) { /* don't care bit */

WARNING:TYPO_SPELLING: 'dont' may be misspelled - perhaps 'don't'?
#5214: FILE: drivers/net/ice/base/ice_flex_pipe.c:232:
+		dont_care >>= 1;

total: 0 errors, 8 warnings, 5 checks, 5876 lines checked


More information about the test-report mailing list