* [PATCH] Fix section mismatch warning on OSK
@ 2008-11-12 0:18 Suresh Rajashekara
2008-11-12 0:29 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Suresh Rajashekara @ 2008-11-12 0:18 UTC (permalink / raw)
To: linux-omap
Section mismatch warnings when compiling latest git for MACH_OMAP_OSK.
Missing __initdata on the omap1_clk_functions.
Signed-off-by: Suresh Rajashekara <suresh@mistralsolutions.com>
---
arch/arm/mach-omap1/clock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
index 4d0c444..aab7ab1 100644
--- a/arch/arm/mach-omap1/clock.c
+++ b/arch/arm/mach-omap1/clock.c
@@ -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,
--
1.4.4.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Fix section mismatch warning on OSK
2008-11-12 0:18 [PATCH] Fix section mismatch warning on OSK Suresh Rajashekara
@ 2008-11-12 0:29 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-11-12 0:29 UTC (permalink / raw)
To: Suresh Rajashekara; +Cc: linux-omap
* Suresh Rajashekara <suresh@mistralsolutions.com> [081111 16:18]:
> Section mismatch warnings when compiling latest git for MACH_OMAP_OSK.
> Missing __initdata on the omap1_clk_functions.
>
> Signed-off-by: Suresh Rajashekara <suresh@mistralsolutions.com>
> ---
> arch/arm/mach-omap1/clock.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
> index 4d0c444..aab7ab1 100644
> --- a/arch/arm/mach-omap1/clock.c
> +++ b/arch/arm/mach-omap1/clock.c
> @@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-12 0:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 0:18 [PATCH] Fix section mismatch warning on OSK Suresh Rajashekara
2008-11-12 0:29 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox