[dpdk-test-report] |WARNING| pw41988 [1/9] net/cxgbe: query firmware for HASH filter resources
checkpatch at dpdk.org
checkpatch at dpdk.org
Fri Jun 29 20:14:42 CEST 2018
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/41988
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects?
#87: FILE: drivers/net/cxgbe/cxgbe_compat.h:257:
+#define mult_frac(x, numer, denom)( \
+{ \
+ typeof(x) quot = (x) / (denom); \
+ typeof(x) rem = (x) % (denom); \
+ (quot * (numer)) + ((rem * (numer)) / (denom)); \
+} \
+)
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'numer' - possible side-effects?
#87: FILE: drivers/net/cxgbe/cxgbe_compat.h:257:
+#define mult_frac(x, numer, denom)( \
+{ \
+ typeof(x) quot = (x) / (denom); \
+ typeof(x) rem = (x) % (denom); \
+ (quot * (numer)) + ((rem * (numer)) / (denom)); \
+} \
+)
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'denom' - possible side-effects?
#87: FILE: drivers/net/cxgbe/cxgbe_compat.h:257:
+#define mult_frac(x, numer, denom)( \
+{ \
+ typeof(x) quot = (x) / (denom); \
+ typeof(x) rem = (x) % (denom); \
+ (quot * (numer)) + ((rem * (numer)) / (denom)); \
+} \
+)
total: 0 errors, 0 warnings, 3 checks, 231 lines checked
More information about the test-report
mailing list