Fix section mismatch warning on OSK
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.
Signed-off-by Suresh Rajashekara <[email protected]>
--- arch/arm/mach-omap1/clock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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,
Signature · 1 line
1.4.4.4
Tony Lindgren
reviewerQuoted 12 lines · Suresh Rajashekara
Section mismatch warnings when compiling latest git for
MACH_OMAP_OSK. Missing__initdataon theomap1_clk_functions.Signed-off-by Suresh Rajashekara <[email protected]>--- arch/arm/mach-omap1/clock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-omap1/clock.c +0
-0
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