diff mbox series

ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition

Message ID 20191015131238.25781-1-ben.dooks@codethink.co.uk (mailing list archive)
State Mainlined, archived
Headers show
Series ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition | expand

Commit Message

Ben Dooks Oct. 15, 2019, 1:12 p.m. UTC
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(+)

Comments

Rafael J. Wysocki Nov. 13, 2019, 12:16 p.m. UTC | #1
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!
diff mbox series

Patch

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 */