DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] devtools: exclude atomic checks for common cnxk
@ 2025-03-27 11:13 pbhagavatula
  0 siblings, 0 replies; only message in thread
From: pbhagavatula @ 2025-03-27 11:13 UTC (permalink / raw)
  To: jerinj, Thomas Monjalon; +Cc: dev, Pavan Nikhilesh

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Since driver/common/cnxk has common code that is
used across multiple platforms, allow use of
GCC builtin atomic functions.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 Rest of drivers i.e., drivers/*/cnxk have been migrated to use stdatomics in:
 https://patchwork.dpdk.org/project/dpdk/patch/20250327111120.1641-1-pbhagavatula@marvell.com/

 devtools/checkpatches.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index c9088bb403..2470d4fa83 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -139,6 +139,7 @@ check_forbidden_additions() { # <patch>

 	# refrain from using compiler __atomic_xxx builtins
 	awk -v FOLDERS="lib drivers app examples" \
+		-v SKIP_FILES='drivers/common/cnxk/' \
 		-v EXPRESSIONS="__atomic_.*\\\( __ATOMIC_(RELAXED|CONSUME|ACQUIRE|RELEASE|ACQ_REL|SEQ_CST)" \
 		-v RET_ON_FAIL=1 \
 		-v MESSAGE='Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer rte_atomic_xxx/rte_memory_order_xxx' \
--
2.43.0


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

only message in thread, other threads:[~2025-03-27 11:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-27 11:13 [PATCH] devtools: exclude atomic checks for common cnxk pbhagavatula

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).