Messages in this thread | | | Subject | Re: [Cocci] [RFC] firmware: annotate thou shalt not request fw on init or probe | From | SF Markus Elfring <> | Date | Thu, 3 Sep 2015 13:45:50 +0200 |
| |
> +@ calls_fw_on_init depends on defines_module_init @ > +identifier defines_module_init.init; > +position p1; > +@@ > + > +init(void) > +{ > + ...
Would it make sense to use the specification "when any" for such a SmPL ellipsis? http://coccinelle.lip6.fr/docs/main_grammar004.html
> +( > +request_firmware@p1(...) > +| > +request_firmware_nowait@p1(...) > +| > +request_firmware_direct@p1(...) > +) > +... > +}
Are there any more source code variants to check today?
Regards, Markus
| |