[Cocci] Coccinelle rules for module_pci_driver

Julia Lawall julia.lawall at lip6.fr
Thu Oct 16 21:28:15 CEST 2014



On Thu, 16 Oct 2014, Michael Opdenacker wrote:

> Hi Julia,
>
> On 10/16/2014 03:56 PM, Julia Lawall wrote:
> > I suggest the following semantic patch.  It is in two parts.  The first
> > part matches all of the functions/declarations to ensure that they are all
> > present.  The second part then makes the transformation.
> >
> > I get a change in only one file.
>
> Many thanks for this new version (interesting approach that has the
> advantage of being progressive and repeatable) and for your explanations.
>
> I confirm that it works for me and that I will work on making it
> suitable for "make coccicheck" in the Linux kernel.

Just run coccinelle/tools/sgen/sgen on it and see what happens.

julia


More information about the Cocci mailing list