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

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Jan 16 15:13:34 CET 2019


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'align' - possible side-effects?
#44: 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
#56: 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, 0 warnings, 2 checks, 24 lines checked


More information about the test-report mailing list