Skip to contentSkip to conversation

gbefb: fix section mismatch warnings

PATCH New Randy Dunlap 1 participant 1 message Oct 29, 2007 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gbefb: fix section mismatch warnings

From: Randy Dunlap <[email protected]>

Make 'default_mode' and 'default_var' be __initdata. Fixes these section warnings:

WARNING: vmlinux.o(.data+0x128e0): Section mismatch: reference to .init.data:default_mode_CRT (between 'default_mode' and 'default_var')
WARNING: vmlinux.o(.data+0x128e4): Section mismatch: reference to .init.data:default_var_CRT (between 'default_var' and 'dev_attr_size')

---
 drivers/video/gbefb.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/video/gbefb.c +2 -2
@@ -183,8 +183,8 @@ static struct fb_videomode default_mode_
 	.vmode		= FB_VMODE_NONINTERLACED,
 };
 
-struct fb_videomode *default_mode = &default_mode_CRT;
-struct fb_var_screeninfo *default_var = &default_var_CRT;
+struct fb_videomode *default_mode __initdata = &default_mode_CRT;
+struct fb_var_screeninfo *default_var __initdata = &default_var_CRT;
 
 static int flat_panel_enabled = 0;
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/