[dpdk-test-report] |WARNING| pw54293 [PATCH 17/49] net/ice/base: use macro instead of magic 8

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Jun 4 07:44:56 CEST 2019


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

_coding style issues_


CHECK:MACRO_ARG_PRECEDENCE: Macro argument '_offset_bytes' may be better as '(_offset_bytes)' to avoid precedence issues
#70: FILE: drivers/net/ice/base/ice_flow.c:39:
+#define ICE_FLOW_FLD_INFO(_hdr, _offset_bytes, _size_bytes) { \
+	.hdr = _hdr, \
+	.off = _offset_bytes * BITS_PER_BYTE, \
+	.size = _size_bytes * BITS_PER_BYTE, \
+}

CHECK:MACRO_ARG_PRECEDENCE: Macro argument '_size_bytes' may be better as '(_size_bytes)' to avoid precedence issues
#70: FILE: drivers/net/ice/base/ice_flow.c:39:
+#define ICE_FLOW_FLD_INFO(_hdr, _offset_bytes, _size_bytes) { \
+	.hdr = _hdr, \
+	.off = _offset_bytes * BITS_PER_BYTE, \
+	.size = _size_bytes * BITS_PER_BYTE, \
+}

total: 0 errors, 0 warnings, 2 checks, 157 lines checked


More information about the test-report mailing list