* [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode
@ 2013-06-06 21:30 Nicolas Palix
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Palix @ 2013-06-06 21:30 UTC (permalink / raw)
To: cocci
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.
---
scripts/coccicheck | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/scripts/coccicheck b/scripts/coccicheck
index 06fcb33..9d8780c 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -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
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode
@ 2013-06-06 21:39 Nicolas Palix
2013-06-06 21:39 ` [Cocci] [PATCH 2/2] Coccinelle: Update the Coccinelle section of MAINTAINERS Nicolas Palix
2013-06-14 13:32 ` [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode Michal Marek
0 siblings, 2 replies; 4+ messages in thread
From: Nicolas Palix @ 2013-06-06 21:39 UTC (permalink / raw)
To: cocci
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.
Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
---
I forgot to sign the previous emails.
scripts/coccicheck | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/scripts/coccicheck b/scripts/coccicheck
index 06fcb33..9d8780c 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -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
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Cocci] [PATCH 2/2] Coccinelle: Update the Coccinelle section of MAINTAINERS
2013-06-06 21:39 [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode Nicolas Palix
@ 2013-06-06 21:39 ` Nicolas Palix
2013-06-14 13:32 ` [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode Michal Marek
1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Palix @ 2013-06-06 21:39 UTC (permalink / raw)
To: cocci
Add Michal Marek and the misc branch of the kbuild tree
in the Coccinelle section of MAINTAINERS.
Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
---
MAINTAINERS | 2 ++
1 file changed, 2 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 3d7782b..73b1b3a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2098,7 +2098,9 @@ COCCINELLE/Semantic Patches (SmPL)
M: Julia Lawall <Julia.Lawall@lip6.fr>
M: Gilles Muller <Gilles.Muller@lip6.fr>
M: Nicolas Palix <nicolas.palix@imag.fr>
+M: Michal Marek <mmarek@suse.cz>
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/
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode
2013-06-06 21:39 [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode Nicolas Palix
2013-06-06 21:39 ` [Cocci] [PATCH 2/2] Coccinelle: Update the Coccinelle section of MAINTAINERS Nicolas Palix
@ 2013-06-14 13:32 ` Michal Marek
1 sibling, 0 replies; 4+ messages in thread
From: Michal Marek @ 2013-06-14 13:32 UTC (permalink / raw)
To: cocci
On Thu, Jun 06, 2013 at 11:39:52PM +0200, Nicolas Palix wrote:
> 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.
>
> Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
On Thu, Jun 06, 2013 at 11:39:53PM +0200, Nicolas Palix wrote:
> Add Michal Marek and the misc branch of the kbuild tree
> in the Coccinelle section of MAINTAINERS.
>
> Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
I applied both patches to kbuild.git#misc.
Thanks,
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-14 13:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-06 21:39 [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode Nicolas Palix
2013-06-06 21:39 ` [Cocci] [PATCH 2/2] Coccinelle: Update the Coccinelle section of MAINTAINERS Nicolas Palix
2013-06-14 13:32 ` [Cocci] [PATCH 1/2] Coccinelle: Make 'report' the default mode Michal Marek
-- strict thread matches above, loose matches on Subject: below --
2013-06-06 21:30 Nicolas Palix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox