* [PATCH] framebuffer: fix carminefb section mismatch
@ 2008-10-08 21:20 Randy Dunlap
2008-10-09 7:29 ` Geert Uytterhoeven
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2008-10-08 21:20 UTC (permalink / raw)
To: linux-fbdev-devel, akpm; +Cc: Sebastian Siewior
From: Randy Dunlap <randy.dunlap@oracle.com>
Could fix a dangerous problem since
info->fix = carminefb_fix;
and info->fix can be used at any time later (in carmine_set_par()).
WARNING: drivers/video/carminefb.o(.text+0x81b): Section mismatch in reference from the function alloc_carmine_fb() to the variable .devinit.data:carminefb_fix
The function alloc_carmine_fb() references
the variable __devinitdata carminefb_fix.
This is often because alloc_carmine_fb lacks a __devinitdata
annotation or the annotation of carminefb_fix is wrong.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
cc: Sebastian Siewior <bigeasy@linutronix.de>
---
drivers/video/carminefb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lin2627-r9g1-sections.orig/drivers/video/carminefb.c
+++ lin2627-r9g1-sections/drivers/video/carminefb.c
@@ -76,7 +76,7 @@ struct carmine_fb {
u32 pseudo_palette[16];
};
-static struct fb_fix_screeninfo carminefb_fix __devinitdata = {
+static struct fb_fix_screeninfo carminefb_fix = {
.id = "Carmine",
.type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_TRUECOLOR,
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] framebuffer: fix carminefb section mismatch
2008-10-08 21:20 [PATCH] framebuffer: fix carminefb section mismatch Randy Dunlap
@ 2008-10-09 7:29 ` Geert Uytterhoeven
2008-10-09 15:10 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2008-10-09 7:29 UTC (permalink / raw)
To: Randy Dunlap; +Cc: akpm, linux-fbdev-devel, Sebastian Siewior
On Wed, 8 Oct 2008, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Could fix a dangerous problem since
> info->fix = carminefb_fix;
> and info->fix can be used at any time later (in carmine_set_par()).
This is a full copy of the contents, not a pointer to the original.
> WARNING: drivers/video/carminefb.o(.text+0x81b): Section mismatch in reference from the function alloc_carmine_fb() to the variable .devinit.data:carminefb_fix
> The function alloc_carmine_fb() references
> the variable __devinitdata carminefb_fix.
> This is often because alloc_carmine_fb lacks a __devinitdata
> annotation or the annotation of carminefb_fix is wrong.
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> cc: Sebastian Siewior <bigeasy@linutronix.de>
> ---
> drivers/video/carminefb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- lin2627-r9g1-sections.orig/drivers/video/carminefb.c
> +++ lin2627-r9g1-sections/drivers/video/carminefb.c
> @@ -76,7 +76,7 @@ struct carmine_fb {
> u32 pseudo_palette[16];
> };
>
> -static struct fb_fix_screeninfo carminefb_fix __devinitdata = {
> +static struct fb_fix_screeninfo carminefb_fix = {
> .id = "Carmine",
> .type = FB_TYPE_PACKED_PIXELS,
> .visual = FB_VISUAL_TRUECOLOR,
alloc_carmine_fb() should be __devinit instead?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] framebuffer: fix carminefb section mismatch
2008-10-09 7:29 ` Geert Uytterhoeven
@ 2008-10-09 15:10 ` Randy Dunlap
2008-10-10 20:25 ` [PATCH v2] " Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2008-10-09 15:10 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: akpm, linux-fbdev-devel, Sebastian Siewior
Geert Uytterhoeven wrote:
> On Wed, 8 Oct 2008, Randy Dunlap wrote:
>> From: Randy Dunlap <randy.dunlap@oracle.com>
>>
>> Could fix a dangerous problem since
>> info->fix = carminefb_fix;
>> and info->fix can be used at any time later (in carmine_set_par()).
>
> This is a full copy of the contents, not a pointer to the original.
Argh, darn it. Thanks.
>> WARNING: drivers/video/carminefb.o(.text+0x81b): Section mismatch in reference from the function alloc_carmine_fb() to the variable .devinit.data:carminefb_fix
>> The function alloc_carmine_fb() references
>> the variable __devinitdata carminefb_fix.
>> This is often because alloc_carmine_fb lacks a __devinitdata
>> annotation or the annotation of carminefb_fix is wrong.
>>
>> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
>> cc: Sebastian Siewior <bigeasy@linutronix.de>
>> ---
>> drivers/video/carminefb.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> --- lin2627-r9g1-sections.orig/drivers/video/carminefb.c
>> +++ lin2627-r9g1-sections/drivers/video/carminefb.c
>> @@ -76,7 +76,7 @@ struct carmine_fb {
>> u32 pseudo_palette[16];
>> };
>>
>> -static struct fb_fix_screeninfo carminefb_fix __devinitdata = {
>> +static struct fb_fix_screeninfo carminefb_fix = {
>> .id = "Carmine",
>> .type = FB_TYPE_PACKED_PIXELS,
>> .visual = FB_VISUAL_TRUECOLOR,
>
> alloc_carmine_fb() should be __devinit instead?
I'll check on that.
Thanks again for checking.
--
~Randy
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH v2] framebuffer: fix carminefb section mismatch
2008-10-09 15:10 ` Randy Dunlap
@ 2008-10-10 20:25 ` Randy Dunlap
2008-10-13 8:41 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2008-10-10 20:25 UTC (permalink / raw)
To: linux-fbdev-devel; +Cc: akpm, Geert Uytterhoeven, Sebastian Siewior
From: Randy Dunlap <randy.dunlap@oracle.com>
Make alloc_carmine_fb() __devinit.
WARNING: drivers/video/carminefb.o(.text+0x81b): Section mismatch in reference from the function alloc_carmine_fb() to the variable .devinit.data:carminefb_fix
The function alloc_carmine_fb() references
the variable __devinitdata carminefb_fix.
This is often because alloc_carmine_fb lacks a __devinitdata
annotation or the annotation of carminefb_fix is wrong.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
cc: Sebastian Siewior <bigeasy@linutronix.de>
---
drivers/video/carminefb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lin2627-r9g1-sections.orig/drivers/video/carminefb.c
+++ lin2627-r9g1-sections/drivers/video/carminefb.c
@@ -535,7 +535,7 @@ static struct fb_ops carminefb_ops = {
.fb_setcolreg = carmine_setcolreg,
};
-static int alloc_carmine_fb(void __iomem *regs, void __iomem *smem_base,
+static int __devinit alloc_carmine_fb(void __iomem *regs, void __iomem *smem_base,
int smem_offset, struct device *device, struct fb_info **rinfo)
{
int ret;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v2] framebuffer: fix carminefb section mismatch
2008-10-10 20:25 ` [PATCH v2] " Randy Dunlap
@ 2008-10-13 8:41 ` Sebastian Andrzej Siewior
0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2008-10-13 8:41 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Geert Uytterhoeven, akpm, linux-fbdev-devel
Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Make alloc_carmine_fb() __devinit.
>
> WARNING: drivers/video/carminefb.o(.text+0x81b): Section mismatch in reference from the function alloc_carmine_fb() to the variable .devinit.data:carminefb_fix
> The function alloc_carmine_fb() references
> the variable __devinitdata carminefb_fix.
> This is often because alloc_carmine_fb lacks a __devinitdata
> annotation or the annotation of carminefb_fix is wrong.
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> cc: Sebastian Siewior <bigeasy@linutronix.de>
Thx for the patch Randy. I see Andrew slipped it allready in his queue.
Sebastian
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-13 9:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 21:20 [PATCH] framebuffer: fix carminefb section mismatch Randy Dunlap
2008-10-09 7:29 ` Geert Uytterhoeven
2008-10-09 15:10 ` Randy Dunlap
2008-10-10 20:25 ` [PATCH v2] " Randy Dunlap
2008-10-13 8:41 ` Sebastian Andrzej Siewior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).