mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
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: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
dcd6c92267
commit
65b2576c9d
@ -9,15 +9,10 @@ if [ "$C" = "1" -o "$C" = "2" ]; then
|
||||
# FLAGS="-ignore_unknown_options -very_quiet"
|
||||
# OPTIONS=$*
|
||||
|
||||
if [ "$KBUILD_EXTMOD" = "" ] ; then
|
||||
# Workaround for Coccinelle < 0.2.3
|
||||
FLAGS="-I $srctree/include -very_quiet"
|
||||
shift $(( $# - 1 ))
|
||||
OPTIONS=$1
|
||||
else
|
||||
echo M= is not currently supported when C=1 or C=2
|
||||
exit 1
|
||||
fi
|
||||
# Workaround for Coccinelle < 0.2.3
|
||||
FLAGS="-I $srctree/include -very_quiet"
|
||||
shift $(( $# - 1 ))
|
||||
OPTIONS=$1
|
||||
else
|
||||
ONLINE=0
|
||||
FLAGS="-very_quiet"
|
||||
|
Loading…
Reference in New Issue
Block a user