Skip to content

Commit 91c717c

Browse files
PavanNikhileshtmonjalo
authored andcommitted
devtools: fix path of check exceptions
SKIP_FILES should include the path of the file along with the name. Update the regex to match the entire path. Fixes: dd88f51 ("devtools: forbid DPDK API in cnxk base driver") Fixes: 2b843ca ("drivers: use per line logging in helpers") Signed-off-by: Pavan Nikhilesh <[email protected]>
1 parent 8edcada commit 91c717c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

devtools/checkpatches.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ check_forbidden_additions() { # <patch>
6363

6464
# refrain from new calls to RTE_LOG in drivers (but leave some leeway for base drivers)
6565
awk -v FOLDERS="drivers" \
66-
-v SKIP_FILES='osdep.h$' \
66+
-v SKIP_FILES='.*osdep.h$' \
6767
-v EXPRESSIONS="RTE_LOG\\\( RTE_LOG_DP\\\( rte_log\\\(" \
6868
-v RET_ON_FAIL=1 \
6969
-v MESSAGE='Prefer RTE_LOG_LINE/RTE_LOG_DP_LINE' \
@@ -236,7 +236,7 @@ check_forbidden_additions() { # <patch>
236236

237237
# forbid rte_ symbols in cnxk base driver
238238
awk -v FOLDERS='drivers/common/cnxk/roc_*' \
239-
-v SKIP_FILES='roc_platform*' \
239+
-v SKIP_FILES='.*roc_platform.*' \
240240
-v EXPRESSIONS="rte_ RTE_" \
241241
-v RET_ON_FAIL=1 \
242242
-v MESSAGE='Use plt_ symbols instead of rte_ API in cnxk base driver' \

0 commit comments

Comments
 (0)