linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sm501fb: fix section mismatch warning
@ 2011-06-16 19:32 Randy Dunlap
  2011-01-03  1:31 ` [PATCH] gx1fb: Fix section mismatch derived from gx1fb_driver variable Sedat Dilek
  0 siblings, 1 reply; 6+ messages in thread
From: Randy Dunlap @ 2011-06-16 19:32 UTC (permalink / raw)
  To: linux-fbdev

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix section mismatch warning in sm501fb:

WARNING: drivers/video/sm501fb.o(.text+0x21d6): Section mismatch in reference from the function sm501fb_init_fb() to the variable .devinit.data:sm501_default_mode
The function sm501fb_init_fb() references
the variable __devinitdata sm501_default_mode.
This is often because sm501fb_init_fb lacks a __devinitdata 
annotation or the annotation of sm501_default_mode is wrong.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/video/sm501fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-30-rc3.orig/drivers/video/sm501fb.c
+++ lnx-30-rc3/drivers/video/sm501fb.c
@@ -1664,7 +1664,7 @@ static void sm501fb_stop(struct sm501fb_
 			   resource_size(info->regs_res));
 }
 
-static int sm501fb_init_fb(struct fb_info *fb,
+static int __devinit sm501fb_init_fb(struct fb_info *fb,
 			   enum sm501_controller head,
 			   const char *fbname)
 {

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-24  8:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-16 19:32 [PATCH] sm501fb: fix section mismatch warning Randy Dunlap
2011-01-03  1:31 ` [PATCH] gx1fb: Fix section mismatch derived from gx1fb_driver variable Sedat Dilek
2011-01-06  6:39   ` Paul Mundt
2011-06-16 19:31     ` [PATCH] gx1fb: Fix section mismatch warnings Randy Dunlap
2011-06-17  7:15       ` Sedat Dilek
2011-06-24  8:01       ` Paul Mundt

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).