On Sat, 19 Nov 2016, Arend van Spriel wrote:

> On 18-11-16 10:01, Arend van Spriel wrote:
> > On 17-11-16 23:48, Julia Lawall wrote:
> >>
> >>
> >> On Thu, 17 Nov 2016, Arend Van Spriel wrote:
> >>
> >>> Not seen a response on the backports mailing list so subscribed to the
> >>> cocci mailing list and reposting it.
> >>
> >> Sorry to have missed seeing it.
> >
> > No problem.
> >
> >>>
> >>> Attached is a script I want to use to backport drivers. However, the
> >>> second (unnamed) rule matches for each occurence of 'struct
> >>> net_device_ops'. Is there a way to disable a rule after a desired amount
> >>> of matches (in my case once)?
> >>
> >> Here is a somewhat clunky solution:
> >>
>
> [...]
>
> >> struct net_device_ops OPS = {
> >> +      .ndo_change_mtu = __change_mtu,
> >>        ...
> >> };
> >>
> >> -------------------------
> >
> > Big thanks. Have not tried it yet, but do you want me to add your
> > Signed-off-by given that you mostly solved the problem.
>
> Hi Julia,
>
> It works so let me know if you want me to add the Signed-off-by giving
> you proper credit when I submit it as patch to the backports project.

Yes, you can add the Signed-off-by.  Thanks.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to