From 1bcc289ef7d3c807958f7e02edaab1d27308546e Mon Sep 17 00:00:00 2001 From: Dariusz Stojaczyk Date: Mon, 20 Nov 2017 16:31:58 +0100 Subject: [PATCH] scripts/check_format: ignore POSIX includes in include/linux Ignore them in order to be able to keep linux headers 1:1. Change-Id: I49a26012a5f0acdd10351eacdf8cb052c44a4044 Signed-off-by: Dariusz Stojaczyk Reviewed-on: https://review.gerrithub.io/388194 Reviewed-by: Seth Howell Reviewed-by: Jim Harris Reviewed-by: Ben Walker Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp --- scripts/check_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index 2bb3a8c21..1cae9c5f9 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -77,7 +77,7 @@ fi rm -f eofnl.log echo -n "Checking for POSIX includes..." -git grep -I -i -f scripts/posix.txt -- './*' ':!include/spdk/stdinc.h' ':!lib/vhost/rte_vhost*/**' ':!scripts/posix.txt' > scripts/posix.log || true +git grep -I -i -f scripts/posix.txt -- './*' ':!include/spdk/stdinc.h' ':!include/linux/**' ':!lib/vhost/rte_vhost*/**' ':!scripts/posix.txt' > scripts/posix.log || true if [ -s scripts/posix.log ]; then echo "POSIX includes detected. Please include spdk/stdinc.h instead." cat scripts/posix.log