X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=devtools%2Fcheckpatches.sh;h=34a2e43845f10702721a34860819bc0509d9b571;hb=09b0a36cc7aef21deec6a73d3930a5fd43dfaed9;hp=e2fef76fd823eb522900318e22cfd75a40e5125c;hpb=1eaa8f01607f870eded67a74dd44f7f173a7fd11;p=dpdk.git diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index e2fef76fd8..34a2e43845 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -118,6 +118,14 @@ check_forbidden_additions() { # -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \ "$1" || res=1 + # forbid use of __reserved which is a reserved keyword in Windows system headers + awk -v FOLDERS="lib drivers app examples" \ + -v EXPRESSIONS='\\<__reserved\\>' \ + -v RET_ON_FAIL=1 \ + -v MESSAGE='Using __reserved' \ + -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' \