summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorDavid Marchand <[email protected]>2024-10-10 15:55:16 +0200
committerDavid Marchand <[email protected]>2024-10-11 11:04:20 +0200
commit93f8d73ac18de2df963698d31d8dd819392deade (patch)
treecc64035b1a6ba127b63ae72053265654100ada3a /devtools
parente0bf217330a89c30505f218ce89005cfb662af7c (diff)
devtools: exclude common EAL header from attribute check
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 <[email protected]> Acked-by: Stephen Hemminger <[email protected]>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/checkpatches.sh1
1 files changed, 1 insertions, 0 deletions
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' \