|WARNING| pw146294 [PATCH dpdk v5 03/17] net: add IPv6 address structure and utils
checkpatch at dpdk.org
checkpatch at dpdk.org
Fri Oct 18 16:07:57 CEST 2024
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/146294
_coding style issues_
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#388: FILE: lib/net/rte_ip6.h:160:
+#define RTE_IPV6_U16_SPLIT(x) \
+ (uint8_t)((uint16_t)(x) & UINT16_C(0xff)), \
+ (uint8_t)(((uint16_t)(x) >> 8) & UINT16_C(0xff))
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#392: FILE: lib/net/rte_ip6.h:164:
+#define RTE_IPV6_U16_SPLIT(x) \
+ (uint8_t)(((uint16_t)(x) >> 8) & UINT16_C(0xff)), \
+ (uint8_t)((uint16_t)(x) & UINT16_C(0xff))
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#436: FILE: lib/net/rte_ip6.h:208:
+#define RTE_IPV6_ADDR_SPLIT(ip) \
+ ((uint8_t)(ip)->a[0]), \
+ ((uint8_t)(ip)->a[1]), \
+ ((uint8_t)(ip)->a[2]), \
+ ((uint8_t)(ip)->a[3]), \
+ ((uint8_t)(ip)->a[4]), \
+ ((uint8_t)(ip)->a[5]), \
+ ((uint8_t)(ip)->a[6]), \
+ ((uint8_t)(ip)->a[7]), \
+ ((uint8_t)(ip)->a[8]), \
+ ((uint8_t)(ip)->a[9]), \
+ ((uint8_t)(ip)->a[10]), \
+ ((uint8_t)(ip)->a[11]), \
+ ((uint8_t)(ip)->a[12]), \
+ ((uint8_t)(ip)->a[13]), \
+ ((uint8_t)(ip)->a[14]), \
+ ((uint8_t)(ip)->a[15])
total: 3 errors, 0 warnings, 361 lines checked
More information about the test-report
mailing list