From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 705EDA00C2 for ; Wed, 22 Apr 2020 08:19:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E502D1C43A; Wed, 22 Apr 2020 08:19:49 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id A7B611C2A9; Wed, 22 Apr 2020 08:19:47 +0200 (CEST) In-Reply-To: <20200422061624.110901-6-yong.liu@intel.com> References: <20200422061624.110901-6-yong.liu@intel.com> To: test-report@dpdk.org Cc: Marvin Liu Message-Id: <20200422061947.A7B611C2A9@dpdk.org> Date: Wed, 22 Apr 2020 08:19:47 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw69084 [PATCH v7 5/9] net/virtio: add vectorized packed ring Rx path X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/69084 _coding style issues_ CHECK:CAMELCASE: Avoid CamelCase: <_Pragma> #215: 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 #215: 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? #215: 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 #215: 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 #220: 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? #220: 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 #220: 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 #225: 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? #225: 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 #225: 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? #230: 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 #230: 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, 477 lines checked