Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

uvesafb: fix section mismatch warnings

Mark uvesafb_init_mtrr() as __devinit since its caller is __devinit
and since it accesses __devinitdata.

WARNING: vmlinux.o(.text+0x4df80e): Section mismatch: reference to .init.data: (between 'uvesafb_init_mtrr' and 'uvesafb_show_vbe_ver')

Variable 'blank' cannot be __devinitdata since it is referenced in an
fb_ops method that could be called at any time.

WARNING: vmlinux.o(.text+0x4dfc1e): Section mismatch: reference to .init.data:blank (between 'param_set_scroll' and 'vesa_setpalette')
WARNING: vmlinux.o(.text+0x4dfc24): Section mismatch: reference to .init.data:blank (between 'param_set_scroll' and 'vesa_setpalette')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
27b526a0 d2d159db

+2 -2
+2 -2
drivers/video/uvesafb.c
··· 43 43 }; 44 44 45 45 static int mtrr __devinitdata = 3; /* enable mtrr by default */ 46 - static int blank __devinitdata = 1; /* enable blanking by default */ 46 + static int blank = 1; /* enable blanking by default */ 47 47 static int ypan __devinitdata = 1; /* 0: scroll, 1: ypan, 2: ywrap */ 48 48 static int pmi_setpal __devinitdata = 1; /* use PMI for palette changes */ 49 49 static int nocrtc __devinitdata; /* ignore CRTC settings */ ··· 1549 1549 info->fbops->fb_pan_display = NULL; 1550 1550 } 1551 1551 1552 - static void uvesafb_init_mtrr(struct fb_info *info) 1552 + static void __devinit uvesafb_init_mtrr(struct fb_info *info) 1553 1553 { 1554 1554 #ifdef CONFIG_MTRR 1555 1555 if (mtrr && !(info->fix.smem_start & (PAGE_SIZE - 1))) {