Skip to content

Commit e8da08a

Browse files
Benjamin Thielardbiesheuvel
authored andcommitted
efi: Pull up arch-specific prototype efi_systab_show_arch()
Pull up arch-specific prototype efi_systab_show_arch() in order to fix a -Wmissing-prototypes warning: arch/x86/platform/efi/efi.c:957:7: warning: no previous prototype for ‘efi_systab_show_arch’ [-Wmissing-prototypes] char *efi_systab_show_arch(char *str) Signed-off-by: Benjamin Thiel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent e78d334 commit e8da08a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/firmware/efi/efi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,8 @@ static ssize_t systab_show(struct kobject *kobj,
130130
if (efi.smbios != EFI_INVALID_TABLE_ADDR)
131131
str += sprintf(str, "SMBIOS=0x%lx\n", efi.smbios);
132132

133-
if (IS_ENABLED(CONFIG_IA64) || IS_ENABLED(CONFIG_X86)) {
134-
extern char *efi_systab_show_arch(char *str);
135-
133+
if (IS_ENABLED(CONFIG_IA64) || IS_ENABLED(CONFIG_X86))
136134
str = efi_systab_show_arch(str);
137-
}
138135

139136
return str - buf;
140137
}

include/linux/efi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,4 +1245,6 @@ struct linux_efi_memreserve {
12451245

12461246
void __init efi_arch_mem_reserve(phys_addr_t addr, u64 size);
12471247

1248+
char *efi_systab_show_arch(char *str);
1249+
12481250
#endif /* _LINUX_EFI_H */

0 commit comments

Comments
 (0)