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
2929 if [ "$KBUILD_EXTMOD" = "" ] ; then
3030 OPTIONS="-dir $srctree $COCCIINCLUDE"
3131 else
32− OPTIONS="-dir $KBUILD_EXTMOD -patch $srctree $COCCIINCLUDE"
32+ OPTIONS="-dir $KBUILD_EXTMOD $COCCIINCLUDE"
3333 fi
3434 fi
3535
36+if [ "$KBUILD_EXTMOD" != "" ] ; then
37+ OPTIONS="-patch $srctree $OPTIONS"
38+fi
39+
3640 if [ ! -x "$SPATCH" ]; then
3741 echo 'spatch is part of the Coccinelle project and is available at http://coccinelle.lip6.fr/'
3842 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