linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tdfxfb: fix section mismatch warnings
@ 2008-01-12  1:03 Randy Dunlap
  2008-01-12  4:22 ` Krzysztof Helt
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2008-01-12  1:03 UTC (permalink / raw)
  To: linux-fbdev-devel, hmallat; +Cc: akpm, samr, adaplas

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

tdfxfb_setup() can be __devinit.  This fixes the modpost section mismatch
warnings:

WARNING: vmlinux.o(.text+0x4cff9b): Section mismatch: reference to .init.data:mode_option (between 'tdfxfb_setup' and 'getclkMHz')
WARNING: vmlinux.o(.text+0x4cffa8): Section mismatch: reference to .init.data: (between 'tdfxfb_setup' and 'getclkMHz')

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

--- linux-2.6.24-rc7-git1.orig/drivers/video/tdfxfb.c
+++ linux-2.6.24-rc7-git1/drivers/video/tdfxfb.c
@@ -1342,7 +1342,7 @@ out_err:
 }
 
 #ifndef MODULE
-static void tdfxfb_setup(char *options)
+static void __devinit tdfxfb_setup(char *options)
 {
 	char *this_opt;
 
---
~Randy

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

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

end of thread, other threads:[~2008-01-12 11:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-12  1:03 [PATCH] tdfxfb: fix section mismatch warnings Randy Dunlap
2008-01-12  4:22 ` Krzysztof Helt
2008-01-12 11:54   ` Andrew Morton

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