From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E6BDA457A1 for ; Mon, 12 Aug 2024 15:01:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E30EF406B7; Mon, 12 Aug 2024 15:01:49 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 15CE540695 for ; Mon, 12 Aug 2024 15:01:44 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 0EF85123EF6; Mon, 12 Aug 2024 15:01:44 +0200 (CEST) Subject: |WARNING| pw143071 [PATCH v3 1/5] eal: extend bit manipulation functionality In-Reply-To: <20240812124930.604796-2-mattias.ronnblom@ericsson.com> References: <20240812124930.604796-2-mattias.ronnblom@ericsson.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: =?utf-8?q?Mattias_R=C3=B6nnblom?= Message-Id: <20240812130144.0EF85123EF6@dpdk.org> Date: Mon, 12 Aug 2024 15:01:44 +0200 (CEST) X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 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 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/143071 _coding style issues_ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #231: FILE: lib/eal/include/rte_bitops.h:131: + uint32_t *: __rte_bit_test32, \ ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #231: FILE: lib/eal/include/rte_bitops.h:131: + uint32_t *: __rte_bit_test32, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #232: FILE: lib/eal/include/rte_bitops.h:132: + const uint32_t *: __rte_bit_test32, \ ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #232: FILE: lib/eal/include/rte_bitops.h:132: + const uint32_t *: __rte_bit_test32, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #233: FILE: lib/eal/include/rte_bitops.h:133: + uint64_t *: __rte_bit_test64, \ ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #233: FILE: lib/eal/include/rte_bitops.h:133: + uint64_t *: __rte_bit_test64, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #234: FILE: lib/eal/include/rte_bitops.h:134: + const uint64_t *: __rte_bit_test64)(addr, nr) ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #234: FILE: lib/eal/include/rte_bitops.h:134: + const uint64_t *: __rte_bit_test64)(addr, nr) ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #256: FILE: lib/eal/include/rte_bitops.h:156: + uint32_t *: __rte_bit_set32, \ ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #256: FILE: lib/eal/include/rte_bitops.h:156: + uint32_t *: __rte_bit_set32, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #257: FILE: lib/eal/include/rte_bitops.h:157: + uint64_t *: __rte_bit_set64)(addr, nr) ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #257: FILE: lib/eal/include/rte_bitops.h:157: + uint64_t *: __rte_bit_set64)(addr, nr) ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #279: FILE: lib/eal/include/rte_bitops.h:179: + uint32_t *: __rte_bit_clear32, \ ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #279: FILE: lib/eal/include/rte_bitops.h:179: + uint32_t *: __rte_bit_clear32, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #280: FILE: lib/eal/include/rte_bitops.h:180: + uint64_t *: __rte_bit_clear64)(addr, nr) ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #280: FILE: lib/eal/include/rte_bitops.h:180: + uint64_t *: __rte_bit_clear64)(addr, nr) ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #303: FILE: lib/eal/include/rte_bitops.h:203: + uint32_t *: __rte_bit_assign32, \ ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #303: FILE: lib/eal/include/rte_bitops.h:203: + uint32_t *: __rte_bit_assign32, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #304: FILE: lib/eal/include/rte_bitops.h:204: + uint64_t *: __rte_bit_assign64)(addr, nr, value) ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #304: FILE: lib/eal/include/rte_bitops.h:204: + uint64_t *: __rte_bit_assign64)(addr, nr, value) ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #326: FILE: lib/eal/include/rte_bitops.h:226: + uint32_t *: __rte_bit_flip32, \ ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #326: FILE: lib/eal/include/rte_bitops.h:226: + uint32_t *: __rte_bit_flip32, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxO) #327: FILE: lib/eal/include/rte_bitops.h:227: + uint64_t *: __rte_bit_flip64)(addr, nr) ^ ERROR:SPACING: spaces required around that ':' (ctx:OxW) #327: FILE: lib/eal/include/rte_bitops.h:227: + uint64_t *: __rte_bit_flip64)(addr, nr) ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #332: FILE: lib/eal/include/rte_bitops.h:232: + __rte_bit_ ## variant ## test ## size(const qualifier uint ## size ## _t *addr, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #344: FILE: lib/eal/include/rte_bitops.h:244: + __rte_bit_ ## variant ## set ## size(qualifier uint ## size ## _t *addr, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #356: FILE: lib/eal/include/rte_bitops.h:256: + __rte_bit_ ## variant ## clear ## size(qualifier uint ## size ## _t *addr, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #368: FILE: lib/eal/include/rte_bitops.h:268: + __rte_bit_ ## variant ## assign ## size(qualifier uint ## size ## _t *addr, \ ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #380: FILE: lib/eal/include/rte_bitops.h:280: + __rte_bit_ ## variant ## flip ## size(qualifier uint ## size ## _t *addr, \ ^ ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #389: FILE: lib/eal/include/rte_bitops.h:289: +#define __RTE_GEN_BIT_OPS(v, qualifier, size) \ + __RTE_GEN_BIT_TEST(v, qualifier, size) \ + __RTE_GEN_BIT_SET(v, qualifier, size) \ + __RTE_GEN_BIT_CLEAR(v, qualifier, size) \ + __RTE_GEN_BIT_ASSIGN(v, qualifier, size) \ + __RTE_GEN_BIT_FLIP(v, qualifier, size) ERROR:SPACING: space required after that ',' (ctx:BxO) #397: FILE: lib/eal/include/rte_bitops.h:297: + __RTE_GEN_BIT_OPS(,, size) ^ ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #424: FILE: lib/eal/include/rte_bitops.h:999: + rte_bit_ ## fun(qualifier uint ## size ## _t *addr, \ ^ ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #430: FILE: lib/eal/include/rte_bitops.h:1005: +#define __RTE_BIT_OVERLOAD_2(fun, qualifier, arg1_type, arg1_name) \ + __RTE_BIT_OVERLOAD_SZ_2(fun, qualifier, 32, arg1_type, arg1_name) \ + __RTE_BIT_OVERLOAD_SZ_2(fun, qualifier, 64, arg1_type, arg1_name) ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #434: FILE: lib/eal/include/rte_bitops.h:1009: +#define __RTE_BIT_OVERLOAD_SZ_2R(fun, qualifier, size, ret_type, arg1_type, \ + arg1_name) \ + static inline ret_type \ + rte_bit_ ## fun(qualifier uint ## size ## _t *addr, \ + arg1_type arg1_name) \ + { \ + return __rte_bit_ ## fun ## size(addr, arg1_name); \ + } ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #437: FILE: lib/eal/include/rte_bitops.h:1012: + rte_bit_ ## fun(qualifier uint ## size ## _t *addr, \ ^ ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #443: FILE: lib/eal/include/rte_bitops.h:1018: +#define __RTE_BIT_OVERLOAD_2R(fun, qualifier, ret_type, arg1_type, arg1_name) \ + __RTE_BIT_OVERLOAD_SZ_2R(fun, qualifier, 32, ret_type, arg1_type, \ + arg1_name) \ + __RTE_BIT_OVERLOAD_SZ_2R(fun, qualifier, 64, ret_type, arg1_type, \ + arg1_name) ERROR:SPACING: need consistent spacing around '*' (ctx:WxV) #452: FILE: lib/eal/include/rte_bitops.h:1027: + rte_bit_ ## fun(uint ## size ## _t *addr, arg1_type arg1_name, \ ^ ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #458: FILE: lib/eal/include/rte_bitops.h:1033: +#define __RTE_BIT_OVERLOAD_3(fun, qualifier, arg1_type, arg1_name, arg2_type, \ + arg2_name) \ + __RTE_BIT_OVERLOAD_SZ_3(fun, qualifier, 32, arg1_type, arg1_name, \ + arg2_type, arg2_name) \ + __RTE_BIT_OVERLOAD_SZ_3(fun, qualifier, 64, arg1_type, arg1_name, \ + arg2_type, arg2_name) ERROR:SPACING: space required after that ',' (ctx:VxO) #466: FILE: lib/eal/include/rte_bitops.h:1041: +__RTE_BIT_OVERLOAD_2(set,, unsigned int, nr) ^ ERROR:SPACING: space required after that ',' (ctx:VxO) #467: FILE: lib/eal/include/rte_bitops.h:1042: +__RTE_BIT_OVERLOAD_2(clear,, unsigned int, nr) ^ ERROR:SPACING: space required after that ',' (ctx:VxO) #468: FILE: lib/eal/include/rte_bitops.h:1043: +__RTE_BIT_OVERLOAD_3(assign,, unsigned int, nr, bool, value) ^ ERROR:SPACING: space required after that ',' (ctx:VxO) #469: FILE: lib/eal/include/rte_bitops.h:1044: +__RTE_BIT_OVERLOAD_2(flip,, unsigned int, nr) ^ total: 42 errors, 0 warnings, 288 lines checked __rte_experimental must appear alone on the line immediately preceding the return type of a function. __rte_experimental must appear alone on the line immediately preceding the return type of a function. __rte_experimental must appear alone on the line immediately preceding the return type of a function. __rte_experimental must appear alone on the line immediately preceding the return type of a function. __rte_experimental must appear alone on the line immediately preceding the return type of a function.