• Lars-Peter Clausen's avatar
    blackfin: Fixup export.h includes · 90590543
    Lars-Peter Clausen authored
    Commit 8dc7a9c8 ("blackfin: Add export.h to files using
    EXPORT_SYMBOL/THIS_MODULE") inserted some of the include statements into
    sections protected by an unrelated #if CONFIG_... statement. This can cause,
    depending on the configuration used, warnings like this one:
    
    	arch/blackfin/mach-bf537/boards/stamp.c:2940: warning: data definition has no type or storage class
    	arch/blackfin/mach-bf537/boards/stamp.c:2940: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL’
    	arch/blackfin/mach-bf537/boards/stamp.c:2940: warning: parameter names (without types) in function declaration
    
    This patch fixes it by moving the includes out of the #if protected sections.
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
    Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
    90590543
pnav10.c 12.2 KB