* [PATCH] ARM: OMAP: Fix section mismatch warning in dsp_common.c
@ 2007-05-18 7:14 Dirk Behme
2007-05-18 15:47 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Dirk Behme @ 2007-05-18 7:14 UTC (permalink / raw)
To: linux-omap-open-source
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
Fix
WARNING: arch/arm/plat-omap/built-in.o - Section mismatch: reference
to .init.text: from .text between 'dsp_cpustat_update' (at offset
0x7c40) and 'do_release_mem'
If init_dsp isn't set, dsp_cpustat_update() calls omap_dsp_init(). So
don't declare omap_dsp_init() as __init.
Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
[-- Attachment #2: fix_section_mismatch_dsp_common.txt --]
[-- Type: text/plain, Size: 420 bytes --]
Index: linux-osk/arch/arm/plat-omap/dsp/dsp_common.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/dsp/dsp_common.c
+++ linux-osk/arch/arm/plat-omap/dsp/dsp_common.c
@@ -268,7 +268,7 @@ void dsp_reset_idle_boot_base(void) { }
static int init_done;
-static int __init omap_dsp_init(void)
+static int omap_dsp_init(void)
{
mutex_init(&cpustat.lock);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP: Fix section mismatch warning in dsp_common.c
2007-05-18 7:14 [PATCH] ARM: OMAP: Fix section mismatch warning in dsp_common.c Dirk Behme
@ 2007-05-18 15:47 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-05-18 15:47 UTC (permalink / raw)
To: Dirk Behme; +Cc: linux-omap-open-source
* Dirk Behme <dirk.behme@googlemail.com> [070518 00:17]:
>
> Fix
>
> WARNING: arch/arm/plat-omap/built-in.o - Section mismatch: reference
> to .init.text: from .text between 'dsp_cpustat_update' (at offset
> 0x7c40) and 'do_release_mem'
>
> If init_dsp isn't set, dsp_cpustat_update() calls omap_dsp_init(). So
> don't declare omap_dsp_init() as __init.
>
> Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
>
> Index: linux-osk/arch/arm/plat-omap/dsp/dsp_common.c
> ===================================================================
> --- linux-osk.orig/arch/arm/plat-omap/dsp/dsp_common.c
> +++ linux-osk/arch/arm/plat-omap/dsp/dsp_common.c
> @@ -268,7 +268,7 @@ void dsp_reset_idle_boot_base(void) { }
>
> static int init_done;
>
> -static int __init omap_dsp_init(void)
> +static int omap_dsp_init(void)
> {
> mutex_init(&cpustat.lock);
>
>
>
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-18 15:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 7:14 [PATCH] ARM: OMAP: Fix section mismatch warning in dsp_common.c Dirk Behme
2007-05-18 15:47 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox