• Arnd Bergmann's avatar
    efi: fix missing prototype warnings · fd936fd8
    Arnd Bergmann authored
    The cper.c file needs to include an extra header, and efi_zboot_entry
    needs an extern declaration to avoid these 'make W=1' warnings:
    
    drivers/firmware/efi/libstub/zboot.c:65:1: error: no previous prototype for 'efi_zboot_entry' [-Werror=missing-prototypes]
    drivers/firmware/efi/efi.c:176:16: error: no previous prototype for 'efi_attr_is_visible' [-Werror=missing-prototypes]
    drivers/firmware/efi/cper.c:626:6: error: no previous prototype for 'cper_estatus_print' [-Werror=missing-prototypes]
    drivers/firmware/efi/cper.c:649:5: error: no previous prototype for 'cper_estatus_check_header' [-Werror=missing-prototypes]
    drivers/firmware/efi/cper.c:662:5: error: no previous prototype for 'cper_estatus_check' [-Werror=missing-prototypes]
    
    To make this easier, move the cper specific declarations to
    include/linux/cper.h.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    fd936fd8
bert.c 4.47 KB