* [Cocci] using "attribute" in - context?
@ 2017-02-09 11:48 Johannes Berg
2017-02-09 12:47 ` Julia Lawall
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2017-02-09 11:48 UTC (permalink / raw)
To: cocci
Is there a way to make this work?
@@
identifier fam;
attribute __ro_after_init;
attribute __genl_ro_after_init;
@@
?struct genl_family fam
- __ro_after_init
+ __genl_ro_after_init
?= {...};
Thanks,
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cocci] using "attribute" in - context?
2017-02-09 11:48 [Cocci] using "attribute" in - context? Johannes Berg
@ 2017-02-09 12:47 ` Julia Lawall
2017-02-09 13:03 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2017-02-09 12:47 UTC (permalink / raw)
To: cocci
On Thu, 9 Feb 2017, Johannes Berg wrote:
> Is there a way to make this work?
>
> @@
> identifier fam;
> attribute __ro_after_init;
> attribute __genl_ro_after_init;
> @@
> ?struct genl_family fam
> - __ro_after_init
> + __genl_ro_after_init
> ?= {...};
Not currently, I think. I think that Coccinelle only recognizes
attributes on function definitions.
julia
>
>
> Thanks,
> johannes
> _______________________________________________
> Cocci mailing list
> Cocci at systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Cocci] using "attribute" in - context?
2017-02-09 12:47 ` Julia Lawall
@ 2017-02-09 13:03 ` Johannes Berg
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2017-02-09 13:03 UTC (permalink / raw)
To: cocci
On Thu, 2017-02-09 at 13:47 +0100, Julia Lawall wrote:
>
> On Thu, 9 Feb 2017, Johannes Berg wrote:
>
> > Is there a way to make this work?
> >
> > @@
> > identifier fam;
> > attribute __ro_after_init;
> > attribute __genl_ro_after_init;
> > @@
> > ?struct genl_family fam
> > - __ro_after_init
> > + __genl_ro_after_init
> > ?= {...};
>
> Not currently, I think.??I think that Coccinelle only recognizes
> attributes on function definitions.
Ok, thanks. I'll just define __ro_after_init to nothing then :)
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-09 13:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-09 11:48 [Cocci] using "attribute" in - context? Johannes Berg
2017-02-09 12:47 ` Julia Lawall
2017-02-09 13:03 ` Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.