automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: "Mattias Rönnblom" <mattias.ronnblom@ericsson.com>
Subject: |WARNING| pw143073 [PATCH v3 3/5] eal: add atomic bit operations
Date: Mon, 12 Aug 2024 15:01:34 +0200 (CEST)	[thread overview]
Message-ID: <20240812130134.67BF5123EF6@dpdk.org> (raw)
In-Reply-To: <20240812124930.604796-4-mattias.ronnblom@ericsson.com>

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

_coding style issues_


ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#255: FILE: lib/eal/include/rte_bitops.h:251:
+		 uint32_t *: __rte_bit_atomic_test32,			\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#255: FILE: lib/eal/include/rte_bitops.h:251:
+		 uint32_t *: __rte_bit_atomic_test32,			\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#256: FILE: lib/eal/include/rte_bitops.h:252:
+		 const uint32_t *: __rte_bit_atomic_test32,		\
 		                ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#256: FILE: lib/eal/include/rte_bitops.h:252:
+		 const uint32_t *: __rte_bit_atomic_test32,		\
 		                 ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#257: FILE: lib/eal/include/rte_bitops.h:253:
+		 uint64_t *: __rte_bit_atomic_test64,			\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#257: FILE: lib/eal/include/rte_bitops.h:253:
+		 uint64_t *: __rte_bit_atomic_test64,			\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#258: 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)
#258: 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)
#280: FILE: lib/eal/include/rte_bitops.h:276:
+		 uint32_t *: __rte_bit_atomic_set32,			\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#280: FILE: lib/eal/include/rte_bitops.h:276:
+		 uint32_t *: __rte_bit_atomic_set32,			\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#281: 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)
#281: 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)
#302: FILE: lib/eal/include/rte_bitops.h:298:
+		 uint32_t *: __rte_bit_atomic_clear32,			\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#302: FILE: lib/eal/include/rte_bitops.h:298:
+		 uint32_t *: __rte_bit_atomic_clear32,			\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#303: 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)
#303: 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)
#326: FILE: lib/eal/include/rte_bitops.h:322:
+		 uint32_t *: __rte_bit_atomic_assign32,			\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#326: FILE: lib/eal/include/rte_bitops.h:322:
+		 uint32_t *: __rte_bit_atomic_assign32,			\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#327: 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)
#327: 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)
#350: FILE: lib/eal/include/rte_bitops.h:346:
+		 uint32_t *: __rte_bit_atomic_flip32,			\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#350: FILE: lib/eal/include/rte_bitops.h:346:
+		 uint32_t *: __rte_bit_atomic_flip32,			\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#351: 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)
#351: 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)
#374: FILE: lib/eal/include/rte_bitops.h:370:
+		 uint32_t *: __rte_bit_atomic_test_and_set32,		\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#374: FILE: lib/eal/include/rte_bitops.h:370:
+		 uint32_t *: __rte_bit_atomic_test_and_set32,		\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#375: 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)
#375: 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)
#399: FILE: lib/eal/include/rte_bitops.h:395:
+		 uint32_t *: __rte_bit_atomic_test_and_clear32,		\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#399: FILE: lib/eal/include/rte_bitops.h:395:
+		 uint32_t *: __rte_bit_atomic_test_and_clear32,		\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#400: 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)
#400: 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)
#427: FILE: lib/eal/include/rte_bitops.h:423:
+		 uint32_t *: __rte_bit_atomic_test_and_assign32,	\
 		          ^

ERROR:SPACING: spaces required around that ':' (ctx:OxW)
#427: FILE: lib/eal/include/rte_bitops.h:423:
+		 uint32_t *: __rte_bit_atomic_test_and_assign32,	\
 		           ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#428: 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)
#428: 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)
#442: 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)
#447: 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)
#456: 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)
#461: FILE: lib/eal/include/rte_bitops.h:523:
+		qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr =	\
 		                                         ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#470: 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)
#475: FILE: lib/eal/include/rte_bitops.h:537:
+		qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr =	\
 		                                         ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#484: 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)
#489: FILE: lib/eal/include/rte_bitops.h:551:
+		qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr =	\
 		                                         ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#498: 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)
#512: 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)
#518: FILE: lib/eal/include/rte_bitops.h:580:
+		qualifier RTE_ATOMIC(uint ## size ## _t) *a_addr =	\
 		                                         ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#532: 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)
#538: 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
#543: 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
#552: 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)
#552: 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
#558: 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
#560: 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
#563: 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)
#574: 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
#602: 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)
#605: 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
#611: 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)
#621: 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
#628: 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
#635: 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)
#639: 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
#646: 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)
#663: 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)
#664: 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)
#665: 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)
#667: 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)
#668: 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)
#670: 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)
#672: 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.

           reply	other threads:[~2024-08-12 13:01 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20240812124930.604796-4-mattias.ronnblom@ericsson.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240812130134.67BF5123EF6@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=mattias.ronnblom@ericsson.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).