History

Coccinelle: Fix patch output when coccicheck is used with M= and C=

When the M variable is used, the -patch option should be given to spatch. This patch fixes the case where C is used.

Nicolas Palix committed 13 years ago

Commit bad6a401 parent ed621cc1 file · +5 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/coccicheck+5−1
@@ -29,10 +29,14 @@ else · 28 unmodified lines
29 if [ "$KBUILD_EXTMOD" = "" ] ; then29 if [ "$KBUILD_EXTMOD" = "" ] ; then
30 OPTIONS="-dir $srctree $COCCIINCLUDE"30 OPTIONS="-dir $srctree $COCCIINCLUDE"
31 else31 else
32 OPTIONS="-dir $KBUILD_EXTMOD -patch $srctree $COCCIINCLUDE"32 OPTIONS="-dir $KBUILD_EXTMOD $COCCIINCLUDE"
33 fi33 fi
34fi34fi
35 35
36if [ "$KBUILD_EXTMOD" != "" ] ; then
37 OPTIONS="-patch $srctree $OPTIONS"
38fi
39
36if [ ! -x "$SPATCH" ]; then40if [ ! -x "$SPATCH" ]; then
37 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'41 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
38 exit 142 exit 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t