summaryrefslogtreecommitdiffstats
path: root/scripts/coccicheck
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2015-09-22 15:15:30 +0200
committerMichal Marek <mmarek@suse.com>2015-10-26 21:32:09 +0100
commit5b169108571e0ada22f9b9f5448a2e4fefb5faa6 (patch)
treebc19b1ac02db0e286c58b1096b7d7cebf8e8f682 /scripts/coccicheck
parent02da7b42777c159c6897e233e6c53d5581c07dab (diff)
downloadlinux-0-day-5b169108571e0ada22f9b9f5448a2e4fefb5faa6.tar.gz
linux-0-day-5b169108571e0ada22f9b9f5448a2e4fefb5faa6.tar.xz
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 <a.hajda@samsung.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/coccicheck')
-rwxr-xr-xscripts/coccicheck2
1 files changed, 1 insertions, 1 deletions
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