[dpdk-test-report] |WARNING| pw57942 [PATCH 41/63] net/ice/base: move and add some help function and macros
checkpatch at dpdk.org
checkpatch at dpdk.org
Mon Aug 26 12:55:17 CEST 2019
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/57942
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects?
#98: FILE: drivers/net/ice/base/ice_type.h:33:
+#define ROUND_UP(a, b) ((b) * DIVIDE_AND_ROUND_UP((a), (b)))
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'addr1' - possible side-effects?
#138: FILE: drivers/net/ice/base/ice_type.h:141:
+#define IS_ETHER_ADDR_EQUAL(addr1, addr2) \
+ (((bool)((((u16 *)(addr1))[0] == ((u16 *)(addr2))[0]))) && \
+ ((bool)((((u16 *)(addr1))[1] == ((u16 *)(addr2))[1]))) && \
+ ((bool)((((u16 *)(addr1))[2] == ((u16 *)(addr2))[2]))))
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'addr2' - possible side-effects?
#138: FILE: drivers/net/ice/base/ice_type.h:141:
+#define IS_ETHER_ADDR_EQUAL(addr1, addr2) \
+ (((bool)((((u16 *)(addr1))[0] == ((u16 *)(addr2))[0]))) && \
+ ((bool)((((u16 *)(addr1))[1] == ((u16 *)(addr2))[1]))) && \
+ ((bool)((((u16 *)(addr1))[2] == ((u16 *)(addr2))[2]))))
total: 0 errors, 0 warnings, 3 checks, 93 lines checked
More information about the test-report
mailing list