From: Andrzej Hajda Date: Tue, 22 Sep 2015 13:15:30 +0000 (+0200) Subject: Coccinelle: fix incorrect -include option transformation X-Git-Tag: v4.4-rc1~40^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b169108571e0ada22f9b9f5448a2e4fefb5faa6;p=thirdparty%2Fkernel%2Flinux.git Coccinelle: fix incorrect -include option transformation kbuild/gcc uses -include option to include files and -I to provide paths for #include <> directive. In case of spatch latter option should be prefixed with two -. Signed-off-by: Andrzej Hajda Acked-by: Julia Lawall Signed-off-by: Michal Marek --- diff --git a/scripts/coccicheck b/scripts/coccicheck index bbf901afb606b..b2d758188f2f4 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -30,7 +30,7 @@ FLAGS="$SPFLAGS --very-quiet" # spatch only allows include directories with the syntax "-I include" # while gcc also allows "-Iinclude" and "-include include" COCCIINCLUDE=${LINUXINCLUDE//-I/-I } -COCCIINCLUDE=${COCCIINCLUDE//-include/-I} +COCCIINCLUDE=${COCCIINCLUDE// -include/ --include} if [ "$C" = "1" -o "$C" = "2" ]; then ONLINE=1