* SmPL scripts into build environment? (was: Changelog quality)
[not found] ` <20100115133933.GB21188@rakim.wolfsonmicro.main>
@ 2010-01-15 16:49 ` Németh Márton
2010-01-18 10:58 ` SmPL scripts into build environment? Michal Marek
0 siblings, 1 reply; 3+ messages in thread
From: Németh Márton @ 2010-01-15 16:49 UTC (permalink / raw)
To: Michal Marek, linux-kbuild
Cc: Mark Brown, Julia Lawall, Pekka Enberg, David Miller, stefanr,
adi, david.vrabel, linux-usb, linux-kernel, cocci, Andrew Morton,
Nicolas Palix
Hi Marek,
there was a discussion about patches which are generated using the
tool called spatch. In the changelog the SmPL script was usually
included, see http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git&a=search&h=HEAD&st=commit&s=%3Csmpl%3E .
It is useful to store the SmPL scripts because they may find
problems in the newcoming code also.
In order to run a "check" the spatch tool and the SmPL is also necessary.
There was an idea to place the used SmPL scripts under the Linux
kernel source tree so it can move from the changelog but still remain
for later use. The "check" could be run similar to the tools checkpatch,
sparse or lockdep.
What do you think where the SmPL scripts can be placed?
What do you think the best way would be to introduce some check like this
in the build environment?
Regards,
Márton Németh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: SmPL scripts into build environment?
2010-01-15 16:49 ` SmPL scripts into build environment? (was: Changelog quality) Németh Márton
@ 2010-01-18 10:58 ` Michal Marek
2010-01-18 11:22 ` Julia Lawall
0 siblings, 1 reply; 3+ messages in thread
From: Michal Marek @ 2010-01-18 10:58 UTC (permalink / raw)
To: Németh Márton
Cc: linux-kbuild, Mark Brown, Julia Lawall, Pekka Enberg,
David Miller, stefanr, adi, david.vrabel, linux-usb, linux-kernel,
cocci, Andrew Morton, Nicolas Palix
On 15.1.2010 17:49, Németh Márton wrote:
> Hi Marek,
s/Marek/Michal/ :)
> there was a discussion about patches which are generated using the
> tool called spatch. In the changelog the SmPL script was usually
> included, see http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git&a=search&h=HEAD&st=commit&s=%3Csmpl%3E .
> It is useful to store the SmPL scripts because they may find
> problems in the newcoming code also.
>
> In order to run a "check" the spatch tool and the SmPL is also necessary.
> There was an idea to place the used SmPL scripts under the Linux
> kernel source tree so it can move from the changelog but still remain
> for later use. The "check" could be run similar to the tools checkpatch,
> sparse or lockdep.
>
> What do you think where the SmPL scripts can be placed?
Documentation/smpl/$name_of_problem_fixed.cocci? Or maybe better
scripts/smlp/..., if you are going to add some wrapper that runs the
semantic patches on the source tree. Or something like that, a dedicated
subdirectory to store the semantic patches in individual files.
> What do you think the best way would be to introduce some check like this
> in the build environment?
I've only heard about the tool, I haven't used it yet. Does it need to
preprocess and parse source files like sparse does, or can it check C
files without expanding macros and includes? If the former, then let's
extend make C=... to also support spatch. If the latter, then a script
that runs spatch on all *.c files found the tree should be enough. But
as I said, I haven't used the tool, so I don't know what it needs and
what it can offer.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: SmPL scripts into build environment?
2010-01-18 10:58 ` SmPL scripts into build environment? Michal Marek
@ 2010-01-18 11:22 ` Julia Lawall
0 siblings, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2010-01-18 11:22 UTC (permalink / raw)
To: Michal Marek
Cc: Németh Márton, linux-kbuild, Mark Brown, Pekka Enberg,
David Miller, stefanr, adi, david.vrabel, linux-usb, linux-kernel,
cocci, Andrew Morton, Nicolas Palix
> Documentation/smpl/$name_of_problem_fixed.cocci? Or maybe better
> scripts/smlp/..., if you are going to add some wrapper that runs the
> semantic patches on the source tree. Or something like that, a dedicated
> subdirectory to store the semantic patches in individual files.
The idea is to make it possible to run them, assuming the user has
installed Coccinelle, so scripts seems better.
> > What do you think the best way would be to introduce some check like this
> > in the build environment?
>
> I've only heard about the tool, I haven't used it yet. Does it need to
> preprocess and parse source files like sparse does, or can it check C
> files without expanding macros and includes?
It doesn't need to preprocess the source files.
thanks,
julia
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-18 11:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4B502C6B.7000802@s5r6.in-berlin.de>
[not found] ` <20100115.005445.263291449.davem@davemloft.net>
[not found] ` <tkrat.e88dd4dbf17f9bde@s5r6.in-berlin.de>
[not found] ` <20100115.012233.202457727.davem@davemloft.net>
[not found] ` <Pine.LNX.4.64.1001151039080.23543@ask.diku.dk>
[not found] ` <84144f021001150149u3b784d26g1822be6c5c3ecbf@mail.gmail.com>
[not found] ` <Pine.LNX.4.64.1001151101320.23543@ask.diku.dk>
[not found] ` <20100115110845.GB28625@sirena.org.uk>
[not found] ` <Pine.LNX.4.64.1001151303580.23543@ask.diku.dk>
[not found] ` <20100115133933.GB21188@rakim.wolfsonmicro.main>
2010-01-15 16:49 ` SmPL scripts into build environment? (was: Changelog quality) Németh Márton
2010-01-18 10:58 ` SmPL scripts into build environment? Michal Marek
2010-01-18 11:22 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).