[PATCH] devtools: exclude common EAL header from attribute check
David Marchand
david.marchand at redhat.com
Thu Oct 10 19:00:42 CEST 2024
With the addition of SKIP_FILES in
commit 7e421ae345f4 ("devtools: support skipping forbid rule check"),
it is possible to avoid false positive on adding
attribute wrapper in rte_common.h.
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
devtools/checkpatches.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 0ab841bd5a..c23792025a 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -89,6 +89,7 @@ check_forbidden_additions() { # <patch>
# refrain from using compiler attribute without defining a common macro
awk -v FOLDERS="lib drivers app examples" \
+ -v SKIP_FILES='lib/eal/include/rte_common.h' \
-v EXPRESSIONS="__attribute__" \
-v RET_ON_FAIL=1 \
-v MESSAGE='Using compiler attribute directly' \
--
2.46.2
More information about the dev
mailing list