summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdevtools/checkpatches.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 55fabc5458..3a2a772573 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -135,6 +135,14 @@ check_forbidden_additions() { # <patch>
-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
"$1" || res=1
+ # forbid inclusion of Linux header for PCI constants
+ awk -v FOLDERS="lib drivers app examples" \
+ -v EXPRESSIONS='include.*linux/pci_regs\\.h' \
+ -v RET_ON_FAIL=1 \
+ -v MESSAGE='Using linux/pci_regs.h, prefer rte_pci.h' \
+ -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
+ "$1" || res=1
+
# forbid use of experimental build flag except in examples
awk -v FOLDERS='lib drivers app' \
-v EXPRESSIONS='-DALLOW_EXPERIMENTAL_API allow_experimental_apis' \