Re: [PATCH 1/4] Add targets to use the Coccinelle checker

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michal Marek
Date: Tuesday, April 27, 2010 - 5:40 am

Hi Nicolas,

On 27.4.2010 00:20, Nicolas Palix wrote:

Cool!



This should be echo -e in bash, but then it won't work in dash I guess.
So better use multiple echo commands. Also please add the targets to
'make help' text and add coccicheck-% to the no-dot-config-targets variable.



Please use 'for file in $(srctree)/scripts/smpl/*.cocci; do ...', so
that the reports are in a defined order. Or do you plan to use
subdirectories below scripts/smpl?



echo "The semantic patch that makes this change is available"
echo "in $FILE"

Then you don't need to add the same comment to each of the *.cocci
files. Also is it necessary to advertise

"More information about semantic patching is available at
 http://coccinelle.lip6.fr/"

before processing each *.cocci file? If you want the banner, you could
append it to the "Please check for false positives..." text printed once
in the beginning.



You can also print the URL here if the spatch command is not available.

Michal
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] Add a Coccinelle front-end script, Nicolas Palix, (Mon Apr 26, 2:11 pm)
[PATCH 1/4] Add targets to use the Coccinelle checker, Nicolas Palix, (Mon Apr 26, 2:11 pm)
[PATCH 2/4] Add scripts/smpl/drop_kmalloc_cast.cocci, Nicolas Palix, (Mon Apr 26, 2:11 pm)
[PATCH 3/4] Add scripts/smpl/kzalloc-simple.cocci, Nicolas Palix, (Mon Apr 26, 2:11 pm)
[PATCH 4/4] Add scripts/smpl/resource_size.cocci, Nicolas Palix, (Mon Apr 26, 2:11 pm)
Re: [PATCH 1/4] Add targets to use the Coccinelle checker, Nicolas Palix, (Mon Apr 26, 3:20 pm)
Re: [PATCH 1/4] Add targets to use the Coccinelle checker, Michal Marek, (Tue Apr 27, 5:40 am)
Re: [PATCH 0/4] Add a Coccinelle front-end script, Wolfram Sang, (Tue Apr 27, 5:50 am)
Re: [PATCH 0/4] Add a Coccinelle front-end script, Julia Lawall, (Tue Apr 27, 5:53 am)
Re: [PATCH 1/4] Add targets to use the Coccinelle checker, Roland Dreier, (Thu Apr 29, 10:01 am)