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.march...@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

Reply via email to