aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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