Skip to content

Commit

Permalink
coccicheck: move spatch binary check up
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcgrof authored and Michal Marek committed Jul 22, 2016
1 parent 15f6d33 commit 13d9486
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/coccicheck
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

SPATCH="`which ${SPATCH:=spatch}`"

if [ ! -x "$SPATCH" ]; then
echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
exit 1
fi

trap kill_running SIGTERM SIGINT
declare -a SPATCH_PID

Expand Down Expand Up @@ -51,11 +56,6 @@ 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
fi

if [ "$MODE" = "" ] ; then
if [ "$ONLINE" = "0" ] ; then
echo 'You have not explicitly specified the mode to use. Using default "report" mode.'
Expand Down

0 comments on commit 13d9486

Please sign in to comment.