From 93f8d73ac18de2df963698d31d8dd819392deade Mon Sep 17 00:00:00 2001 From: David Marchand Date: Thu, 10 Oct 2024 15:55:16 +0200 Subject: 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 Acked-by: Stephen Hemminger --- devtools/checkpatches.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'devtools') 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() { # # 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' \ -- cgit v1.2.3