Skip to contentSkip to conversation

Fix section mismatch warning on OSK

PATCH In review Suresh Rajashekara 2 participants 2 messages Nov 12, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix section mismatch warning on OSK

Section mismatch warnings when compiling latest git for MACH_OMAP_OSK. Missing __initdata on the omap1_clk_functions.

---
 arch/arm/mach-omap1/clock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap1/clock.c +1 -1
index 4d0c444..aab7ab1 100644
@@ -636,7 +636,7 @@ static void __init omap1_clk_disable_unused(struct clk *clk)
 #define omap1_clk_disable_unused NULL
 #endif
 
-static struct clk_functions omap1_clk_functions = {
+static struct clk_functions omap1_clk_functions __initdata = {
  .clk_enable = omap1_clk_enable,
  .clk_disable = omap1_clk_disable,
  .clk_round_rate = omap1_clk_round_rate,
Signature · 1 line
1.4.4.4
reviewer
#1 lore raw
Quoted 12 lines · Suresh Rajashekara

Section mismatch warnings when compiling latest git for MACH_OMAP_OSK. Missing __initdata on the omap1_clk_functions.

---
 arch/arm/mach-omap1/clock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap1/clock.c +0 -0
index 4d0c444..aab7ab1 100644

arch/arm/mach-omap1/clock.c static void __init omap1_clk_disable_unused(struct clk *clk) · line 642

Quoted 8 lines
arch/arm/mach-omap1/clock.c +1 -1
@@ -636,7 +636,7 @@ static void __init omap1_clk_disable_unused(struct clk *clk)
 #define omap1_clk_disable_unused NULL
 #endif
 
-static struct clk_functions omap1_clk_functions = {
+static struct clk_functions omap1_clk_functions __initdata = {
  .clk_enable = omap1_clk_enable,
  .clk_disable = omap1_clk_disable,
  .clk_round_rate = omap1_clk_round_rate,

This struct cannot be __initdata, it is used by plat-omap/clock.c as arch_clock.

Tony