[dpdk-test-report] |WARNING| pw69437 [PATCH v11 6/9] net/virtio: add vectorized packed ring Rx path

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Apr 28 10:34:25 CEST 2020


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

_coding style issues_


CHECK:CAMELCASE: Avoid CamelCase: <_Pragma>
#206: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:31:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("GCC unroll 4") \

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#206: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:31:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("GCC unroll 4") \
+	for (iter = val; iter < size; iter++)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'iter' - possible side-effects?
#206: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:31:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("GCC unroll 4") \
+	for (iter = val; iter < size; iter++)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'size' may be better as '(size)' to avoid precedence issues
#206: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:31:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("GCC unroll 4") \
+	for (iter = val; iter < size; iter++)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#211: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:36:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("unroll 4") \
+	for (iter = val; iter < size; iter++)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'iter' - possible side-effects?
#211: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:36:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("unroll 4") \
+	for (iter = val; iter < size; iter++)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'size' may be better as '(size)' to avoid precedence issues
#211: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:36:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("unroll 4") \
+	for (iter = val; iter < size; iter++)

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#216: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:41:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("unroll (4)") \
+	for (iter = val; iter < size; iter++)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'iter' - possible side-effects?
#216: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:41:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("unroll (4)") \
+	for (iter = val; iter < size; iter++)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'size' may be better as '(size)' to avoid precedence issues
#216: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:41:
+#define virtio_for_each_try_unroll(iter, val, size) _Pragma("unroll (4)") \
+	for (iter = val; iter < size; iter++)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'iter' - possible side-effects?
#221: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:46:
+#define virtio_for_each_try_unroll(iter, val, num) \
+	for (iter = val; iter < num; iter++)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'num' may be better as '(num)' to avoid precedence issues
#221: FILE: drivers/net/virtio/virtio_rxtx_packed_avx.c:46:
+#define virtio_for_each_try_unroll(iter, val, num) \
+	for (iter = val; iter < num; iter++)

total: 3 errors, 0 warnings, 9 checks, 492 lines checked


More information about the test-report mailing list