• R
    uvesafb: fix section mismatch warnings · 27b526a0
    Randy Dunlap 提交于
    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: NRandy Dunlap <randy.dunlap@oracle.com>
    Cc: "Antonino A. Daplas" <adaplas@pol.net>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    27b526a0
uvesafb.c 50.8 KB