efi: fix missing prototype warnings
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 May 2023 19:01:30 +0000 (21:01 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 25 May 2023 07:26:19 +0000 (09:26 +0200)
commitfd936fd8ac105ba3eb764185e8ba483c789c893e
tree907e8b3d4b94534dedc7a17c1f4aea5011d01fc1
parent095aabe338d166f3a9c87bcc9b9b84ba80fdaddf
efi: fix missing prototype warnings

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: Arnd Bergmann <arnd@arndb.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/acpi/apei/apei-internal.h
drivers/acpi/apei/bert.c
drivers/firmware/efi/libstub/efistub.h
include/linux/cper.h
include/linux/efi.h