[PATCH] devtools: exclude atomic checks for common cnxk
pbhagavatula at marvell.com
pbhagavatula at marvell.com
Thu Mar 27 12:13:44 CET 2025
From: Pavan Nikhilesh <pbhagavatula at 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 at 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
More information about the dev
mailing list