Skip to content

Commit 13d9486

Browse files
mcgrofMichal Marek
authored and
Michal Marek
committed
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 <[email protected]> Acked-by: Nicolas Palix <[email protected]> Signed-off-by: Michal Marek <[email protected]>
1 parent 15f6d33 commit 13d9486

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/coccicheck

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

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

10+
if [ ! -x "$SPATCH" ]; then
11+
echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
12+
exit 1
13+
fi
14+
1015
trap kill_running SIGTERM SIGINT
1116
declare -a SPATCH_PID
1217

@@ -51,11 +56,6 @@ if [ "$KBUILD_EXTMOD" != "" ] ; then
5156
OPTIONS="--patch $srctree $OPTIONS"
5257
fi
5358

54-
if [ ! -x "$SPATCH" ]; then
55-
echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
56-
exit 1
57-
fi
58-
5959
if [ "$MODE" = "" ] ; then
6060
if [ "$ONLINE" = "0" ] ; then
6161
echo 'You have not explicitly specified the mode to use. Using default "report" mode.'

0 commit comments

Comments
 (0)