Skip to content

Commit 93f8d73

Browse files
devtools: exclude common EAL header from attribute check
With the addition of SKIP_FILES in commit 7e421ae ("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]>
1 parent e0bf217 commit 93f8d73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

devtools/checkpatches.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ check_forbidden_additions() { # <patch>
8989

9090
# refrain from using compiler attribute without defining a common macro
9191
awk -v FOLDERS="lib drivers app examples" \
92+
-v SKIP_FILES='lib/eal/include/rte_common.h' \
9293
-v EXPRESSIONS="__attribute__" \
9394
-v RET_ON_FAIL=1 \
9495
-v MESSAGE='Using compiler attribute directly' \

0 commit comments

Comments
 (0)