diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2015-09-22 13:15:30 (GMT) |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-10-26 20:32:09 (GMT) |
commit | 5b169108571e0ada22f9b9f5448a2e4fefb5faa6 (patch) | |
tree | bc19b1ac02db0e286c58b1096b7d7cebf8e8f682 /scripts/coccicheck | |
parent | 02da7b42777c159c6897e233e6c53d5581c07dab (diff) | |
download | linux-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-x | scripts/coccicheck | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck index bbf901a..b2d7581 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 |