linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition
@ 2019-10-15 13:12 Ben Dooks
  2019-11-13 12:16 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2019-10-15 13:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ben Dooks, Kevin Hilman, Nishanth Menon, linux-pm, linux-kernel

The omap_sr_pdata is not declared but is exported, so add a
define for it to fix the following warning:

arch/arm/mach-omap2/pdata-quirks.c:609:36: warning: symbol 'omap_sr_pdata' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: Kevin Hilman <khilman@kernel.org>
Cc: Nishanth Menon <nm@ti.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 include/linux/power/smartreflex.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/power/smartreflex.h b/include/linux/power/smartreflex.h
index d0b37e937037..971c9264179e 100644
--- a/include/linux/power/smartreflex.h
+++ b/include/linux/power/smartreflex.h
@@ -293,6 +293,9 @@ struct omap_sr_data {
 	struct voltagedomain		*voltdm;
 };
 
+
+extern struct omap_sr_data omap_sr_pdata[OMAP_SR_NR];
+
 #ifdef CONFIG_POWER_AVS_OMAP
 
 /* Smartreflex module enable/disable interface */
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition
  2019-10-15 13:12 [PATCH] ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition Ben Dooks
@ 2019-11-13 12:16 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2019-11-13 12:16 UTC (permalink / raw)
  To: Ben Dooks
  Cc: linux-kernel, Kevin Hilman, Nishanth Menon, linux-pm, linux-kernel

On Tuesday, October 15, 2019 3:12:38 PM CET Ben Dooks wrote:
> The omap_sr_pdata is not declared but is exported, so add a
> define for it to fix the following warning:
> 
> arch/arm/mach-omap2/pdata-quirks.c:609:36: warning: symbol 'omap_sr_pdata' was not declared. Should it be static?
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> ---
> Cc: Kevin Hilman <khilman@kernel.org>
> Cc: Nishanth Menon <nm@ti.com>
> Cc: linux-pm@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
>  include/linux/power/smartreflex.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/linux/power/smartreflex.h b/include/linux/power/smartreflex.h
> index d0b37e937037..971c9264179e 100644
> --- a/include/linux/power/smartreflex.h
> +++ b/include/linux/power/smartreflex.h
> @@ -293,6 +293,9 @@ struct omap_sr_data {
>  	struct voltagedomain		*voltdm;
>  };
>  
> +
> +extern struct omap_sr_data omap_sr_pdata[OMAP_SR_NR];
> +
>  #ifdef CONFIG_POWER_AVS_OMAP
>  
>  /* Smartreflex module enable/disable interface */
> 

Applied as 5.5 material, thanks!





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-13 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-15 13:12 [PATCH] ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition Ben Dooks
2019-11-13 12:16 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).