Skip to content

Commit

Permalink
coccicheck: change handling of C={1,2} when M= is set
Browse files Browse the repository at this point in the history
This patch reverts a portion of d0bc1fb so that coccicheck will
work properly when C=1 or C=2.

Reported-and-tested-by: Brice Goglin <[email protected]>
Signed-off-by: Greg Dietsche <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
farmergreg authored and michal42 committed Jan 26, 2012
1 parent dcd6c92 commit 65b2576
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions scripts/coccicheck
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ if [ "$C" = "1" -o "$C" = "2" ]; then
# FLAGS="-ignore_unknown_options -very_quiet"
# OPTIONS=$*

if [ "$KBUILD_EXTMOD" = "" ] ; then
# Workaround for Coccinelle < 0.2.3
FLAGS="-I $srctree/include -very_quiet"
shift $(( $# - 1 ))
OPTIONS=$1
else
echo M= is not currently supported when C=1 or C=2
exit 1
fi
# Workaround for Coccinelle < 0.2.3
FLAGS="-I $srctree/include -very_quiet"
shift $(( $# - 1 ))
OPTIONS=$1
else
ONLINE=0
FLAGS="-very_quiet"
Expand Down

0 comments on commit 65b2576

Please sign in to comment.