• Randy Dunlap's avatar
    uvesafb: fix section mismatch warnings · 27b526a0
    Randy Dunlap authored
    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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Cc: "Antonino A. Daplas" <adaplas@pol.net>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    27b526a0
uvesafb.c 50.8 KB