summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@kernel.org>2016-06-29 18:14:51 -0400
committerMichal Marek <mmarek@suse.com>2016-07-22 06:13:39 -0400
commit13d948653372987388a09c259758abd44ed6e7f2 (patch)
tree474b799d99d479c08da516340e59468f6c2edf1d /scripts
parent15f6d337159b2a9fdad8c0bef50ec826593ed5d2 (diff)
coccicheck: move spatch binary check up
This has no functional changes. This is being done to enable us to later use spatch binary for some flag checking for certain features early on. Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org> Acked-by: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/coccicheck10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck
index f6627863fdc3..f137b04dfdd3 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -7,6 +7,11 @@
7 7
8SPATCH="`which ${SPATCH:=spatch}`" 8SPATCH="`which ${SPATCH:=spatch}`"
9 9
10if [ ! -x "$SPATCH" ]; then
11 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
12 exit 1
13fi
14
10trap kill_running SIGTERM SIGINT 15trap kill_running SIGTERM SIGINT
11declare -a SPATCH_PID 16declare -a SPATCH_PID
12 17
@@ -51,11 +56,6 @@ if [ "$KBUILD_EXTMOD" != "" ] ; then
51 OPTIONS="--patch $srctree $OPTIONS" 56 OPTIONS="--patch $srctree $OPTIONS"
52fi 57fi
53 58
54if [ ! -x "$SPATCH" ]; then
55 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
56 exit 1
57fi
58
59if [ "$MODE" = "" ] ; then 59if [ "$MODE" = "" ] ; then
60 if [ "$ONLINE" = "0" ] ; then 60 if [ "$ONLINE" = "0" ] ; then
61 echo 'You have not explicitly specified the mode to use. Using default "report" mode.' 61 echo 'You have not explicitly specified the mode to use. Using default "report" mode.'