|
@@ -30,12 +30,6 @@ else
|
|
|
VERBOSE=0
|
|
VERBOSE=0
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
-if [ -z "$J" ]; then
|
|
|
|
|
- NPROC=$(getconf _NPROCESSORS_ONLN)
|
|
|
|
|
-else
|
|
|
|
|
- NPROC="$J"
|
|
|
|
|
-fi
|
|
|
|
|
-
|
|
|
|
|
FLAGS="--very-quiet"
|
|
FLAGS="--very-quiet"
|
|
|
|
|
|
|
|
# You can use SPFLAGS to append extra arguments to coccicheck or override any
|
|
# You can use SPFLAGS to append extra arguments to coccicheck or override any
|
|
@@ -70,6 +64,9 @@ if [ "$C" = "1" -o "$C" = "2" ]; then
|
|
|
# Take only the last argument, which is the C file to test
|
|
# Take only the last argument, which is the C file to test
|
|
|
shift $(( $# - 1 ))
|
|
shift $(( $# - 1 ))
|
|
|
OPTIONS="$COCCIINCLUDE $1"
|
|
OPTIONS="$COCCIINCLUDE $1"
|
|
|
|
|
+
|
|
|
|
|
+ # No need to parallelize Coccinelle since this mode takes one input file.
|
|
|
|
|
+ NPROC=1
|
|
|
else
|
|
else
|
|
|
ONLINE=0
|
|
ONLINE=0
|
|
|
if [ "$KBUILD_EXTMOD" = "" ] ; then
|
|
if [ "$KBUILD_EXTMOD" = "" ] ; then
|
|
@@ -77,6 +74,12 @@ else
|
|
|
else
|
|
else
|
|
|
OPTIONS="--dir $KBUILD_EXTMOD $COCCIINCLUDE"
|
|
OPTIONS="--dir $KBUILD_EXTMOD $COCCIINCLUDE"
|
|
|
fi
|
|
fi
|
|
|
|
|
+
|
|
|
|
|
+ if [ -z "$J" ]; then
|
|
|
|
|
+ NPROC=$(getconf _NPROCESSORS_ONLN)
|
|
|
|
|
+ else
|
|
|
|
|
+ NPROC="$J"
|
|
|
|
|
+ fi
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
if [ "$KBUILD_EXTMOD" != "" ] ; then
|
|
if [ "$KBUILD_EXTMOD" != "" ] ; then
|