Skip to contentSkip to conversation

ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition

PATCH Applied Ben Dooks 2 participants 2 messages Oct 15, 2019 – Nov 13, 2019

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition

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?

---
Cc: Kevin Hilman <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 include/linux/power/smartreflex.h | 3 +++
 1 file changed, 3 insertions(+)
include/linux/power/smartreflex.h +3 -0
index d0b37e937037..971c9264179e 100644
@@ -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 */
Signature · 1 line
2.23.0
#1 lore raw
Quoted 21 lines · CET Ben Dooks

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?

---
Cc: Kevin Hilman <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 include/linux/power/smartreflex.h | 3 +++
 1 file changed, 3 insertions(+)
include/linux/power/smartreflex.h +0 -0
index d0b37e937037..971c9264179e 100644

include/linux/power/smartreflex.h struct omap_sr_data { · line 301

Quoted 9 lines
include/linux/power/smartreflex.h +3 -0
@@ -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!