From: Alexey Dobriyan Instead of headers_check-fix-include-regexp.patch ----------------------------------------------------- The following combinations of pp-tokens are used #include #include # include so, script'd better check for all of them. Signed-off-by: Alexey Dobriyan Cc: David Woodhouse Signed-off-by: Andrew Morton --- scripts/hdrcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN scripts/hdrcheck.sh~headers_check-improve-include-regexp scripts/hdrcheck.sh --- a/scripts/hdrcheck.sh~headers_check-improve-include-regexp +++ a/scripts/hdrcheck.sh @@ -1,6 +1,6 @@ #!/bin/sh -for FILE in `grep '^#include <' $2 | cut -f2 -d\< | cut -f1 -d\> | egrep ^linux\|^asm` ; do +for FILE in `grep '^[ \t]*#[ \t]*include[ \t]*<' $2 | cut -f2 -d\< | cut -f1 -d\> | egrep ^linux\|^asm` ; do if [ ! -r $1/$FILE ]; then echo $2 requires $FILE, which does not exist exit 1 _