using "attribute" in - context?
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
Quoted 11 lines · Johannes Berg
Is there a way to make this work?
@@
identifier fam;
attribute__ro_after_init;
attribute__genl_ro_after_init;
@@
?structgenl_familyfam
-__ro_after_init
+__genl_ro_after_init
?= {...};
Not currently, I think. I think that Coccinelle only recognizes attributes on function definitions.
julia
Quoted 9 lines
Thanks,
johannes
_______________________________________________
Cocci mailing list
Cocci at systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
Quoted 15 lines · Julia Lawall
Quoted 11 lines · Johannes Berg
Is there a way to make this work?
@@
identifier fam;
attribute__ro_after_init;
attribute__genl_ro_after_init;
@@
?structgenl_familyfam
-__ro_after_init
+__genl_ro_after_init
?= {...};
Quoted 2 lines
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