Commit 42f1c01b authored by Greg Dietsche's avatar Greg Dietsche Committed by Michal Marek

coccicheck: change handling of C={1,2} when M= is set

This patch reverts a portion of d0bc1fb4 so that coccicheck will
work properly when C=1 or C=2.
Reported-and-tested-by: default avatarBrice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: default avatarGreg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 6c635224
...@@ -9,15 +9,10 @@ if [ "$C" = "1" -o "$C" = "2" ]; then ...@@ -9,15 +9,10 @@ if [ "$C" = "1" -o "$C" = "2" ]; then
# FLAGS="-ignore_unknown_options -very_quiet" # FLAGS="-ignore_unknown_options -very_quiet"
# OPTIONS=$* # OPTIONS=$*
if [ "$KBUILD_EXTMOD" = "" ] ; then # Workaround for Coccinelle < 0.2.3
# Workaround for Coccinelle < 0.2.3 FLAGS="-I $srctree/include -very_quiet"
FLAGS="-I $srctree/include -very_quiet" shift $(( $# - 1 ))
shift $(( $# - 1 )) OPTIONS=$1
OPTIONS=$1
else
echo M= is not currently supported when C=1 or C=2
exit 1
fi
else else
ONLINE=0 ONLINE=0
FLAGS="-very_quiet" FLAGS="-very_quiet"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment