* [PATCH] radio: fix sf16fmi section mismatch
@ 2008-01-23 5:39 Randy Dunlap
2008-01-23 7:24 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-01-23 5:39 UTC (permalink / raw)
To: v4l-dvb-maintainer, lkml; +Cc: akpm, samr
From: Randy Dunlap <randy.dunlap@oracle.com>
isapnp_fmi_probe() is only called by fmi_init(), which is __init,
so isapnp_fmi_probe() can also be __init.
media/radio/radio-sf16fmi.c:
WARNING: vmlinux.o(.text+0x994e19): Section mismatch: reference to .init.data: (between 'isapnp_fmi_probe' and 'vidioc_s_tuner')
WARNING: vmlinux.o(.text+0x994e22): Section mismatch: reference to .init.data: (between 'isapnp_fmi_probe' and 'vidioc_s_tuner')
WARNING: vmlinux.o(.text+0x994e3a): Section mismatch: reference to .init.data:id_table (between 'isapnp_fmi_probe' and 'vidioc_s_tuner')
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/media/radio/radio-sf16fmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.24-rc8-git5.orig/drivers/media/radio/radio-sf16fmi.c
+++ linux-2.6.24-rc8-git5/drivers/media/radio/radio-sf16fmi.c
@@ -321,7 +321,7 @@ static struct isapnp_device_id id_table[
MODULE_DEVICE_TABLE(isapnp, id_table);
-static int isapnp_fmi_probe(void)
+static int __init isapnp_fmi_probe(void)
{
int i = 0;
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] radio: fix sf16fmi section mismatch
2008-01-23 5:39 [PATCH] radio: fix sf16fmi section mismatch Randy Dunlap
@ 2008-01-23 7:24 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-01-23 7:24 UTC (permalink / raw)
To: Randy Dunlap; +Cc: v4l-dvb-maintainer, lkml, akpm
On Tue, Jan 22, 2008 at 09:39:39PM -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> isapnp_fmi_probe() is only called by fmi_init(), which is __init,
> so isapnp_fmi_probe() can also be __init.
>
> media/radio/radio-sf16fmi.c:
> WARNING: vmlinux.o(.text+0x994e19): Section mismatch: reference to .init.data: (between 'isapnp_fmi_probe' and 'vidioc_s_tuner')
> WARNING: vmlinux.o(.text+0x994e22): Section mismatch: reference to .init.data: (between 'isapnp_fmi_probe' and 'vidioc_s_tuner')
> WARNING: vmlinux.o(.text+0x994e3a): Section mismatch: reference to .init.data:id_table (between 'isapnp_fmi_probe' and 'vidioc_s_tuner')
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
> ---
> drivers/media/radio/radio-sf16fmi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-2.6.24-rc8-git5.orig/drivers/media/radio/radio-sf16fmi.c
> +++ linux-2.6.24-rc8-git5/drivers/media/radio/radio-sf16fmi.c
> @@ -321,7 +321,7 @@ static struct isapnp_device_id id_table[
>
> MODULE_DEVICE_TABLE(isapnp, id_table);
>
> -static int isapnp_fmi_probe(void)
> +static int __init isapnp_fmi_probe(void)
> {
> int i = 0;
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-23 7:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23 5:39 [PATCH] radio: fix sf16fmi section mismatch Randy Dunlap
2008-01-23 7:24 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®