* [dpdk-test-report] |WARNING| pw54675 [PATCH v2 18/66] net/ice/base: use macro instead of magic 8
[not found] <20190611155221.2703-19-leyi.rong@intel.com>
@ 2019-06-13 13:55 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-06-13 13:55 UTC (permalink / raw)
To: test-report; +Cc: Leyi Rong
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/54675
_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
^ permalink raw reply [flat|nested] only message in thread