• Henrik Kretzschmar's avatar
    fbdev: section cleanup in arcfb · 5dfcd5d1
    Henrik Kretzschmar authored
    commit bd9b5caf upstream.
    
    Fix the sections in the arcfb driver, by moving:
    
    *	the variables arcfb_fix and arcfb_var from .init.data to .devinit.data
    
    *	arcfb_remove() from .text to .devexit.text
    
    This fixes the following warnings issued by modpost:
    
    WARNING: drivers/video/built-in.o(.devinit.text+0x543): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_var
    The function __devinit arcfb_probe() references
    a variable __initdata arcfb_var.
    If arcfb_var is only used by arcfb_probe then
    annotate arcfb_var with a matching annotation.
    
    WARNING: drivers/video/built-in.o(.devinit.text+0x558): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_fix
    The function __devinit arcfb_probe() references
    a variable __initdata arcfb_fix.
    If arcfb_fix is only used by arcfb_probe then
    annotate arcfb_fix with a matching annotation.
    Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
    Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    5dfcd5d1
arcfb.c 16.5 KB