Skip to contentSkip to conversation

Coccinelle: Make 'report' the default mode

PATCH In review Nicolas Palix 2 participants 3 messages Jun 6, 2013 – Jun 14, 2013 Coccinelle/Semantic Patches (SmPL)

lore
Share & tools
lore

Nicolas Palix

author maintainer
#0 lore raw

PATCH 1/2 Coccinelle: Make 'report' the default mode

It appears that the 'report' mode is the one always provided by the semantic patches included in the kernel. It is thus more natural to select it by default.

The 'chain' mode is however kept and the 'patch' mode is still the first tried in that case.

---

I forgot to sign the previous emails.

 scripts/coccicheck | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
scripts/coccicheck +11 -3
index 06fcb33..9d8780c 100755
@@ -44,11 +44,19 @@ fi
 
 if [ "$MODE" = "" ] ; then
     if [ "$ONLINE" = "0" ] ; then
-	echo 'You have not explicitly specified the mode to use. Using default "chain" mode.'
-	echo 'All available modes will be tried (in that order): patch, report, context, org'
+	echo 'You have not explicitly specified the mode to use. Using default "report" mode.'
+	echo 'Available modes are the following: patch, report, context, org'
 	echo 'You can specify the mode with "make coccicheck MODE=<mode>"'
+	echo 'Note however that some modes are not implemented by some semantic patches.'
+    fi
+    MODE="report"
+fi
+
+if [ "$MODE" = "chain" ] ; then
+    if [ "$ONLINE" = "0" ] ; then
+	echo 'You have selected the "chain" mode.'
+	echo 'All available modes will be tried (in that order): patch, report, context, org'
     fi
-    MODE="chain"
 elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then
     FLAGS="$FLAGS -no_show_diff"
 fi
Signature · 1 line
1.8.1.2
author maintainer
#1 lore raw

PATCH 2/2 Coccinelle: Update the Coccinelle section of MAINTAINERS

Add Michal Marek and the misc branch of the kbuild tree in the Coccinelle section of MAINTAINERS.

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index 3d7782b..73b1b3a 100644
@@ -2098,7 +2098,9 @@ COCCINELLE/Semantic Patches (SmPL)
 M:	Julia Lawall <[email protected]>
 M:	Gilles Muller <[email protected]>
 M:	Nicolas Palix <[email protected]>
+M:	Michal Marek <[email protected]>
 L:	cocci at systeme.lip6.fr (moderated for non-subscribers)
+T:	git git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild.git misc
 W:	http://coccinelle.lip6.fr/
 S:	Supported
 F:	scripts/coccinelle/
Signature · 1 line
1.8.1.2
#2 lore raw
Quoted 8 lines · Nicolas Palix

It appears that the 'report' mode is the one always provided by the semantic patches included in the kernel. It is thus more natural to select it by default.

The 'chain' mode is however kept and the 'patch' mode is still the first tried in that case.

Quoted 4 lines · Nicolas Palix

Add Michal Marek and the misc branch of the kbuild tree in the Coccinelle section of MAINTAINERS.

I applied both patches to kbuild.git#misc.

Thanks,
Michal