* |WARNING| pw143838 [PATCH v5 4/6] eal: add atomic bit operations
[not found] <20240910062051.699096-5-mattias.ronnblom@ericsson.com>
@ 2024-09-10 6:33 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2024-09-10 6:33 UTC (permalink / raw)
To: test-report; +Cc: Mattias Rönnblom
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/143838
_coding style issues_
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#259: FILE: lib/eal/include/rte_bitops.h:251:
+ uint32_t *: __rte_bit_atomic_test32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#259: FILE: lib/eal/include/rte_bitops.h:251:
+ uint32_t *: __rte_bit_atomic_test32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#260: FILE: lib/eal/include/rte_bitops.h:252:
+ const uint32_t *: __rte_bit_atomic_test32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#260: FILE: lib/eal/include/rte_bitops.h:252:
+ const uint32_t *: __rte_bit_atomic_test32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#261: FILE: lib/eal/include/rte_bitops.h:253:
+ uint64_t *: __rte_bit_atomic_test64, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#261: FILE: lib/eal/include/rte_bitops.h:253:
+ uint64_t *: __rte_bit_atomic_test64, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#262: FILE: lib/eal/include/rte_bitops.h:254:
+ const uint64_t *: __rte_bit_atomic_test64)(addr, nr, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#262: FILE: lib/eal/include/rte_bitops.h:254:
+ const uint64_t *: __rte_bit_atomic_test64)(addr, nr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#284: FILE: lib/eal/include/rte_bitops.h:276:
+ uint32_t *: __rte_bit_atomic_set32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#284: FILE: lib/eal/include/rte_bitops.h:276:
+ uint32_t *: __rte_bit_atomic_set32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#285: FILE: lib/eal/include/rte_bitops.h:277:
+ uint64_t *: __rte_bit_atomic_set64)(addr, nr, memory_order)
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#285: FILE: lib/eal/include/rte_bitops.h:277:
+ uint64_t *: __rte_bit_atomic_set64)(addr, nr, memory_order)
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#306: FILE: lib/eal/include/rte_bitops.h:298:
+ uint32_t *: __rte_bit_atomic_clear32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#306: FILE: lib/eal/include/rte_bitops.h:298:
+ uint32_t *: __rte_bit_atomic_clear32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#307: FILE: lib/eal/include/rte_bitops.h:299:
+ uint64_t *: __rte_bit_atomic_clear64)(addr, nr, memory_order)
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#307: FILE: lib/eal/include/rte_bitops.h:299:
+ uint64_t *: __rte_bit_atomic_clear64)(addr, nr, memory_order)
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#330: FILE: lib/eal/include/rte_bitops.h:322:
+ uint32_t *: __rte_bit_atomic_assign32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#330: FILE: lib/eal/include/rte_bitops.h:322:
+ uint32_t *: __rte_bit_atomic_assign32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#331: FILE: lib/eal/include/rte_bitops.h:323:
+ uint64_t *: __rte_bit_atomic_assign64)(addr, nr, value, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#331: FILE: lib/eal/include/rte_bitops.h:323:
+ uint64_t *: __rte_bit_atomic_assign64)(addr, nr, value, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#354: FILE: lib/eal/include/rte_bitops.h:346:
+ uint32_t *: __rte_bit_atomic_flip32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#354: FILE: lib/eal/include/rte_bitops.h:346:
+ uint32_t *: __rte_bit_atomic_flip32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#355: FILE: lib/eal/include/rte_bitops.h:347:
+ uint64_t *: __rte_bit_atomic_flip64)(addr, nr, memory_order)
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#355: FILE: lib/eal/include/rte_bitops.h:347:
+ uint64_t *: __rte_bit_atomic_flip64)(addr, nr, memory_order)
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#378: FILE: lib/eal/include/rte_bitops.h:370:
+ uint32_t *: __rte_bit_atomic_test_and_set32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#378: FILE: lib/eal/include/rte_bitops.h:370:
+ uint32_t *: __rte_bit_atomic_test_and_set32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#379: FILE: lib/eal/include/rte_bitops.h:371:
+ uint64_t *: __rte_bit_atomic_test_and_set64)(addr, nr, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#379: FILE: lib/eal/include/rte_bitops.h:371:
+ uint64_t *: __rte_bit_atomic_test_and_set64)(addr, nr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#403: FILE: lib/eal/include/rte_bitops.h:395:
+ uint32_t *: __rte_bit_atomic_test_and_clear32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#403: FILE: lib/eal/include/rte_bitops.h:395:
+ uint32_t *: __rte_bit_atomic_test_and_clear32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#404: FILE: lib/eal/include/rte_bitops.h:396:
+ uint64_t *: __rte_bit_atomic_test_and_clear64)(addr, nr, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#404: FILE: lib/eal/include/rte_bitops.h:396:
+ uint64_t *: __rte_bit_atomic_test_and_clear64)(addr, nr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#431: FILE: lib/eal/include/rte_bitops.h:423:
+ uint32_t *: __rte_bit_atomic_test_and_assign32, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#431: FILE: lib/eal/include/rte_bitops.h:423:
+ uint32_t *: __rte_bit_atomic_test_and_assign32, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#432: FILE: lib/eal/include/rte_bitops.h:424:
+ uint64_t *: __rte_bit_atomic_test_and_assign64)(addr, nr, \
^
ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#432: FILE: lib/eal/include/rte_bitops.h:424:
+ uint64_t *: __rte_bit_atomic_test_and_assign64)(addr, nr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#446: FILE: lib/eal/include/rte_bitops.h:504:
+ __rte_bit_atomic_ ## variant ## test ## size(const qualifier uint ## size ## _t *addr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#451: FILE: lib/eal/include/rte_bitops.h:509:
+ const qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr = \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#460: FILE: lib/eal/include/rte_bitops.h:518:
+ __rte_bit_atomic_ ## variant ## set ## size(qualifier uint ## size ## _t *addr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#465: FILE: lib/eal/include/rte_bitops.h:523:
+ qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr = \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#474: FILE: lib/eal/include/rte_bitops.h:532:
+ __rte_bit_atomic_ ## variant ## clear ## size(qualifier uint ## size ## _t *addr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#479: FILE: lib/eal/include/rte_bitops.h:537:
+ qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr = \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#488: FILE: lib/eal/include/rte_bitops.h:546:
+ __rte_bit_atomic_ ## variant ## flip ## size(qualifier uint ## size ## _t *addr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#493: FILE: lib/eal/include/rte_bitops.h:551:
+ qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr = \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#502: FILE: lib/eal/include/rte_bitops.h:560:
+ __rte_bit_atomic_## variant ## assign ## size(qualifier uint ## size ## _t *addr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#516: FILE: lib/eal/include/rte_bitops.h:574:
+ __rte_bit_atomic_ ## variant ## test_and_set ## size(qualifier uint ## size ## _t *addr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#522: FILE: lib/eal/include/rte_bitops.h:580:
+ qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr = \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#536: FILE: lib/eal/include/rte_bitops.h:594:
+ __rte_bit_atomic_ ## variant ## test_and_clear ## size(qualifier uint ## size ## _t *addr, \
^
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#542: FILE: lib/eal/include/rte_bitops.h:600:
+ qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr = \
^
ERROR:CODE_INDENT: code indent should use tabs where possible
#547: FILE: lib/eal/include/rte_bitops.h:605:
+^I prev = rte_atomic_fetch_and_explicit(a_addr, ~mask,^I\$
WARNING:LONG_LINE: line length of 101 exceeds 100 columns
#556: FILE: lib/eal/include/rte_bitops.h:614:
+ __rte_bit_atomic_ ## variant ## test_and_assign ## size(qualifier uint ## size ## _t *addr, \
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#556: FILE: lib/eal/include/rte_bitops.h:614:
+ __rte_bit_atomic_ ## variant ## test_and_assign ## size(qualifier uint ## size ## _t *addr, \
^
WARNING:LONG_LINE: line length of 110 exceeds 100 columns
#562: FILE: lib/eal/include/rte_bitops.h:620:
+ return __rte_bit_atomic_ ## variant ## test_and_set ## size(addr, nr, memory_order); \
WARNING:LONG_LINE: line length of 112 exceeds 100 columns
#564: FILE: lib/eal/include/rte_bitops.h:622:
+ return __rte_bit_atomic_ ## variant ## test_and_clear ## size(addr, nr, memory_order); \
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#567: FILE: lib/eal/include/rte_bitops.h:625:
+#define __RTE_GEN_BIT_ATOMIC_OPS(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_TEST(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_SET(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_CLEAR(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_ASSIGN(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_TEST_AND_SET(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_TEST_AND_CLEAR(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_TEST_AND_ASSIGN(variant, qualifier, size) \
+ __RTE_GEN_BIT_ATOMIC_FLIP(variant, qualifier, size)
ERROR:SPACING: space required after that ',' (ctx:BxO)
#578: FILE: lib/eal/include/rte_bitops.h:636:
+ __RTE_GEN_BIT_ATOMIC_OPS(,, size)
^
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#606: FILE: lib/eal/include/rte_bitops.h:1388:
+#define __RTE_BIT_OVERLOAD_SZ_3R(fun, qualifier, size, ret_type, arg1_type, \
+ arg1_name, arg2_type, arg2_name) \
+ static inline ret_type \
+ rte_bit_ ## fun(uint ## size ## _t *addr, arg1_type arg1_name, \
+ arg2_type arg2_name) \
+ { \
+ return __rte_bit_ ## fun ## size(addr, arg1_name, arg2_name); \
+ }
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#609: FILE: lib/eal/include/rte_bitops.h:1391:
+ rte_bit_ ## fun(uint ## size ## _t *addr, arg1_type arg1_name, \
^
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#615: FILE: lib/eal/include/rte_bitops.h:1397:
+#define __RTE_BIT_OVERLOAD_3R(fun, qualifier, ret_type, arg1_type, arg1_name, \
+ arg2_type, arg2_name) \
+ __RTE_BIT_OVERLOAD_SZ_3R(fun, qualifier, 32, ret_type, arg1_type, \
+ arg1_name, arg2_type, arg2_name) \
+ __RTE_BIT_OVERLOAD_SZ_3R(fun, qualifier, 64, ret_type, arg1_type, \
+ arg1_name, arg2_type, arg2_name)
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#625: FILE: lib/eal/include/rte_bitops.h:1407:
+ rte_bit_ ## fun(uint ## size ## _t *addr, arg1_type arg1_name, \
^
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#632: FILE: lib/eal/include/rte_bitops.h:1414:
+#define __RTE_BIT_OVERLOAD_4(fun, qualifier, arg1_type, arg1_name, arg2_type, \
+ arg2_name, arg3_type, arg3_name) \
+ __RTE_BIT_OVERLOAD_SZ_4(fun, qualifier, 32, arg1_type, arg1_name, \
+ arg2_type, arg2_name, arg3_type, arg3_name) \
+ __RTE_BIT_OVERLOAD_SZ_4(fun, qualifier, 64, arg1_type, arg1_name, \
+ arg2_type, arg2_name, arg3_type, arg3_name)
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#639: FILE: lib/eal/include/rte_bitops.h:1421:
+#define __RTE_BIT_OVERLOAD_SZ_4R(fun, qualifier, size, ret_type, arg1_type, \
+ arg1_name, arg2_type, arg2_name, arg3_type, \
+ arg3_name) \
+ static inline ret_type \
+ rte_bit_ ## fun(uint ## size ## _t *addr, arg1_type arg1_name, \
+ arg2_type arg2_name, arg3_type arg3_name) \
+ { \
+ return __rte_bit_ ## fun ## size(addr, arg1_name, arg2_name, \
+ arg3_name); \
+ }
ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#643: FILE: lib/eal/include/rte_bitops.h:1425:
+ rte_bit_ ## fun(uint ## size ## _t *addr, arg1_type arg1_name, \
^
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#650: FILE: lib/eal/include/rte_bitops.h:1432:
+#define __RTE_BIT_OVERLOAD_4R(fun, qualifier, ret_type, arg1_type, arg1_name, \
+ arg2_type, arg2_name, arg3_type, arg3_name) \
+ __RTE_BIT_OVERLOAD_SZ_4R(fun, qualifier, 32, ret_type, arg1_type, \
+ arg1_name, arg2_type, arg2_name, arg3_type, \
+ arg3_name) \
+ __RTE_BIT_OVERLOAD_SZ_4R(fun, qualifier, 64, ret_type, arg1_type, \
+ arg1_name, arg2_type, arg2_name, arg3_type, \
+ arg3_name)
ERROR:SPACING: space required after that ',' (ctx:VxO)
#667: FILE: lib/eal/include/rte_bitops.h:1449:
+__RTE_BIT_OVERLOAD_3(atomic_set,, unsigned int, nr, int, memory_order)
^
ERROR:SPACING: space required after that ',' (ctx:VxO)
#668: FILE: lib/eal/include/rte_bitops.h:1450:
+__RTE_BIT_OVERLOAD_3(atomic_clear,, unsigned int, nr, int, memory_order)
^
ERROR:SPACING: space required after that ',' (ctx:VxO)
#669: FILE: lib/eal/include/rte_bitops.h:1451:
+__RTE_BIT_OVERLOAD_4(atomic_assign,, unsigned int, nr, bool, value,
^
ERROR:SPACING: space required after that ',' (ctx:VxO)
#671: FILE: lib/eal/include/rte_bitops.h:1453:
+__RTE_BIT_OVERLOAD_3(atomic_flip,, unsigned int, nr, int, memory_order)
^
ERROR:SPACING: space required after that ',' (ctx:VxO)
#672: FILE: lib/eal/include/rte_bitops.h:1454:
+__RTE_BIT_OVERLOAD_3R(atomic_test_and_set,, bool, unsigned int, nr,
^
ERROR:SPACING: space required after that ',' (ctx:VxO)
#674: FILE: lib/eal/include/rte_bitops.h:1456:
+__RTE_BIT_OVERLOAD_3R(atomic_test_and_clear,, bool, unsigned int, nr,
^
ERROR:SPACING: space required after that ',' (ctx:VxO)
#676: FILE: lib/eal/include/rte_bitops.h:1458:
+__RTE_BIT_OVERLOAD_4R(atomic_test_and_assign,, bool, unsigned int, nr,
^
total: 68 errors, 3 warnings, 474 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.
__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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-10 6:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20240910062051.699096-5-mattias.ronnblom@ericsson.com>
2024-09-10 6:33 ` |WARNING| pw143838 [PATCH v5 4/6] eal: add atomic bit operations 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).