Skip to contentSkip to conversation

devtools: exclude common EAL header from attribute check

PATCH In review David Marchand 2 participants 3 messages Oct 10, 2024 – Oct 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 devtools/checkpatches.sh | 1 +
 1 file changed, 1 insertion(+)
devtools/checkpatches.sh +1 -0
index 0ab841bd5a..c23792025a 100755
@@ -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' \
Signature · 1 line
2.46.2