[dpdk-test-report] |WARNING| pw49834 [4/7] net/ice/base: add some help macros

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Jan 15 13:56:05 CET 2019


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

_coding style issues_


WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'align' - possible side-effects?
#42: FILE: drivers/net/ice/base/ice_common.h:63:
+#define ICE_ALIGN(ptr, align)   (((ptr) + ((align) - 1)) & ~((align) - 1))

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'field' may be better as '(field)' to avoid precedence issues
#54: FILE: drivers/net/ice/base/ice_osdep.h:460:
+#define LIST_NEXT_ENTRY(entry, type, field) \
+	((type *)(entry)->field.next.le_next)

total: 0 errors, 1 warnings, 2 checks, 24 lines checked


More information about the test-report mailing list