summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2015-09-22 09:15:30 -0400
committerMichal Marek <mmarek@suse.com>2015-10-26 16:32:09 -0400
commit5b169108571e0ada22f9b9f5448a2e4fefb5faa6 (patch)
treebc19b1ac02db0e286c58b1096b7d7cebf8e8f682 /scripts
parent02da7b42777c159c6897e233e6c53d5581c07dab (diff)
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')
-rwxr-xr-xscripts/coccicheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck
index bbf901afb606..b2d758188f2f 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -30,7 +30,7 @@ FLAGS="$SPFLAGS --very-quiet"
30# spatch only allows include directories with the syntax "-I include" 30# spatch only allows include directories with the syntax "-I include"
31# while gcc also allows "-Iinclude" and "-include include" 31# while gcc also allows "-Iinclude" and "-include include"
32COCCIINCLUDE=${LINUXINCLUDE//-I/-I } 32COCCIINCLUDE=${LINUXINCLUDE//-I/-I }
33COCCIINCLUDE=${COCCIINCLUDE//-include/-I} 33COCCIINCLUDE=${COCCIINCLUDE// -include/ --include}
34 34
35if [ "$C" = "1" -o "$C" = "2" ]; then 35if [ "$C" = "1" -o "$C" = "2" ]; then
36 ONLINE=1 36 ONLINE=1