[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1508291812350.2057@localhost6.localdomain6>
Date: Sat, 29 Aug 2015 18:18:20 +0200 (CEST)
From: Julia Lawall <julia.lawall@...6.fr>
To: "Luis R. Rodriguez" <mcgrof@...not-panic.com>
cc: ming.lei@...onical.com, Julia Lawall <julia.lawall@...6.fr>,
torvalds@...ux-foundation.org, liam.r.girdwood@...ux.intel.com,
yang.jie@...el.com, tiwai@...e.de, dmitry.torokhov@...il.com,
joonas.lahtinen@...ux.intel.com, teg@...m.no,
viro@...iv.linux.org.uk, gregkh@...uxfoundation.org, kay@...y.org,
dwmw2@...radead.org, linux-kernel@...r.kernel.org,
yalin.wang2010@...il.com, "Luis R. Rodriguez" <mcgrof@...e.com>,
Jonathan Corbet <corbet@....net>,
Gilles Muller <Gilles.Muller@...6.fr>,
Nicolas Palix <nicolas.palix@...g.fr>,
Michal Marek <mmarek@...e.com>, linux-doc@...r.kernel.org,
cocci@...teme.lip6.fr, Alessandro Rubini <rubini@...dd.com>,
Kevin Cernekee <cernekee@...il.com>,
Jiri Slaby <jslaby@...e.com>, linux-serial@...r.kernel.org
Subject: Re: [RFC] firmware: annotate thou shalt not request fw on init or
probe
> +@ defines_module_init exists @
> +declarer name module_init;
> +identifier init;
> +@@
> +
> +module_init(init);
> +
> +@ has_probe depends on defines_module_init @
> +identifier drv_calls, drv_probe;
> +type bus_driver;
> +identifier probe_op =~ "(probe)";
> +@@
> +
> +bus_driver drv_calls = {
> + .probe_op = drv_probe,
> +};
I'm not sure that this is enough. For example, there is the macro
platform_driver_probe that initializes probe fields. There is likewise
module_platform_driver, which is a top-level declaration that encapsulates
the module_init and the definition of the module_init function, which in
turn calls platform_driver_probe. There is also module_platform_driver,
which encapsulates the module_init, but not the initialization of the probe
field. Are you concerned with any of these cases?
julia
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists