aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Palix <nicolas.palix@imag.fr>2013-03-02 16:36:28 -0500
committerMichal Marek <mmarek@suse.cz>2013-04-08 09:42:03 -0400
commitbad6a4092e7f87c5310ff342bc0d766a44bcf8fa (patch)
tree63f0721f18eb9adb136da38a4afdf88cc572ba8e /scripts
parented621cc4a5f6fd41cf02b2408273474d46ac4cac (diff)
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/coccicheck6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck
index 6d492c096ade..06fcb3333247 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -29,10 +29,14 @@ else
29 if [ "$KBUILD_EXTMOD" = "" ] ; then 29 if [ "$KBUILD_EXTMOD" = "" ] ; then
30 OPTIONS="-dir $srctree $COCCIINCLUDE" 30 OPTIONS="-dir $srctree $COCCIINCLUDE"
31 else 31 else
32 OPTIONS="-dir $KBUILD_EXTMOD -patch $srctree $COCCIINCLUDE" 32 OPTIONS="-dir $KBUILD_EXTMOD $COCCIINCLUDE"
33 fi 33 fi
34fi 34fi
35 35
36if [ "$KBUILD_EXTMOD" != "" ] ; then
37 OPTIONS="-patch $srctree $OPTIONS"
38fi
39
36if [ ! -x "$SPATCH" ]; then 40if [ ! -x "$SPATCH" ]; then
37 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/' 41 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
38 exit 1 42 exit 1