automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw69322 [PATCH v10 6/9] net/virtio: add vectorized packed ring Rx path
       [not found] <20200426021943.43158-7-yong.liu@intel.com>
@ 2020-04-26  2:21 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-04-26  2:21 UTC (permalink / raw)
  To: test-report; +Cc: Marvin Liu

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

_coding style issues_


CHECK:CAMELCASE: Avoid CamelCase: <_Pragma>
#205: 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
#205: 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?
#205: 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
#205: 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
#210: 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?
#210: 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
#210: 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
#215: 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?
#215: 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
#215: 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?
#220: 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
#220: 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-26  2:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200426021943.43158-7-yong.liu@intel.com>
2020-04-26  2:21 ` [dpdk-test-report] |WARNING| pw69322 [PATCH v10 6/9] net/virtio: add vectorized packed ring Rx path checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).