From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: Re: [Cocci] [RFC] firmware: annotate thou shalt not request fw on init or probe Date: Thu, 3 Sep 2015 13:45:50 +0200 Message-ID: <55E832EE.7050801@users.sourceforge.net> References: <1440811107-861-1-git-send-email-mcgrof@do-not-panic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1440811107-861-1-git-send-email-mcgrof@do-not-panic.com> Sender: linux-doc-owner@vger.kernel.org To: "Luis R. Rodriguez" , Julia Lawall Cc: Alessandro Rubini , Alexander Viro , David Woodhouse , Dmitry Torokhov , Greg Kroah-Hartman , Jie Yang , Jiri Slaby , Jonathan Corbet , Joonas Lahtinen , Kay Sievers , Kevin Cernekee , Linus Torvalds , Michal Marek , Ming Lei , Takashi Iwai , Tom Gundersen , Yalin Wang , Coccinelle , linux-doc@vger.kernel.org, linux-serial@vger.kernel.org, LKML List-Id: linux-serial@vger.kernel.org > +@ 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