[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANDhNCoa+LRu8B4+M+uU4_m2kd=HriO0SyNP=n=XpXwXG2k9LA@mail.gmail.com>
Date: Thu, 17 Nov 2022 11:14:59 -0800
From: John Stultz <jstultz@...gle.com>
To: Javier Martinez Canillas <javierm@...hat.com>
Cc: linux-kernel@...r.kernel.org, Brian Masney <bmasney@...hat.com>,
Bjorn Andersson <andersson@...nel.org>,
Douglas Anderson <dianders@...omium.org>,
Peter Robinson <pbrobinson@...hat.com>,
Enric Balletbo i Serra <eballetbo@...hat.com>,
Steev Klimaszewski <steev@...i.org>,
Rob Herring <robh@...nel.org>,
Daniel Vetter <daniel.vetter@...ll.ch>,
linux-arm-msm@...r.kernel.org,
Saravana Kannan <saravanak@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Alexei Starovoitov <ast@...nel.org>,
Jakub Kicinski <kuba@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
"Rafael J. Wysocki" <rafael@...nel.org>
Subject: Re: [PATCH v2 1/4] driver core: Make driver_deferred_probe_timeout a
static variable
On Wed, Nov 16, 2022 at 3:54 AM Javier Martinez Canillas
<javierm@...hat.com> wrote:
>
> It is not used outside of its compilation unit, so there's no need to
> export this variable.
>
> Signed-off-by: Javier Martinez Canillas <javierm@...hat.com>
> ---
>
> (no changes since v1)
>
> drivers/base/dd.c | 6 ++----
> include/linux/device/driver.h | 1 -
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/base/dd.c b/drivers/base/dd.c
> index 3dda62503102..040b4060f903 100644
> --- a/drivers/base/dd.c
> +++ b/drivers/base/dd.c
> @@ -257,13 +257,11 @@ static int deferred_devs_show(struct seq_file *s, void *data)
> DEFINE_SHOW_ATTRIBUTE(deferred_devs);
>
> #ifdef CONFIG_MODULES
> -int driver_deferred_probe_timeout = 10;
> +static int driver_deferred_probe_timeout = 10;
> #else
> -int driver_deferred_probe_timeout;
> +static int driver_deferred_probe_timeout;
> #endif
>
> -EXPORT_SYMBOL_GPL(driver_deferred_probe_timeout);
> -
Yeah, I added the EXPORT for the regulator code to use it in
dca0b44957e5 but that got backed out when setting
driver_deferred_probe_timeout to 30s was reverted, and this bit was
forgotten.
Thanks for catching this!
Acked-by: John Stultz <jstultz@...gle.com>
Powered by blists - more mailing lists