diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2015-09-22 16:15:30 +0300 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2015-10-26 23:32:09 +0300 |
commit | 5b169108571e0ada22f9b9f5448a2e4fefb5faa6 (patch) | |
tree | bc19b1ac02db0e286c58b1096b7d7cebf8e8f682 | |
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>
-rwxr-xr-x | scripts/coccicheck | 2 |
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" # 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 |