mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
Coccinelle: Fix patch output when coccicheck is used with M= and C=
When the M variable is used, the -patch option should be given to spatch. This patch fixes the case where C is used. Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
ed621cc4a5
commit
bad6a4092e
@ -29,10 +29,14 @@ else
|
||||
if [ "$KBUILD_EXTMOD" = "" ] ; then
|
||||
OPTIONS="-dir $srctree $COCCIINCLUDE"
|
||||
else
|
||||
OPTIONS="-dir $KBUILD_EXTMOD -patch $srctree $COCCIINCLUDE"
|
||||
OPTIONS="-dir $KBUILD_EXTMOD $COCCIINCLUDE"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$KBUILD_EXTMOD" != "" ] ; then
|
||||
OPTIONS="-patch $srctree $OPTIONS"
|
||||
fi
|
||||
|
||||
if [ ! -x "$SPATCH" ]; then
|
||||
echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user