Re: [tip:x86/cleanups] x86/headers: Fix -Wmissing-prototypes warning
From: Ingo Molnar
Date: Fri Nov 23 2018 - 02:03:30 EST
* tip-bot for Yi Wang <tipbot@xxxxxxxxx> wrote:
> Commit-ID: d37904c5b14317a2c76efec6b9e4dbcaa17380e5
> Gitweb: https://git.kernel.org/tip/d37904c5b14317a2c76efec6b9e4dbcaa17380e5
> Author: Yi Wang <wang.yi59@xxxxxxxxxx>
> AuthorDate: Thu, 22 Nov 2018 10:04:09 +0800
> Committer: Ingo Molnar <mingo@xxxxxxxxxx>
> CommitDate: Thu, 22 Nov 2018 09:52:28 +0100
>
> x86/headers: Fix -Wmissing-prototypes warning
> #endif /* _ASM_X86_CRASH_H */
> diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h
> index eea40d52ca78..063f1d4d698e 100644
> --- a/arch/x86/include/asm/efi.h
> +++ b/arch/x86/include/asm/efi.h
> @@ -173,8 +173,6 @@ static inline bool efi_runtime_supported(void)
> extern struct console early_efi_console;
> extern void parse_efi_setup(u64 phys_addr, u32 data_len);
>
> -extern void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
> -
> #ifdef CONFIG_EFI_MIXED
> extern void efi_thunk_runtime_setup(void);
> extern efi_status_t efi_thunk_set_virtual_address_map(
> diff --git a/include/linux/efi.h b/include/linux/efi.h
> index 845174e113ce..890c4cb37502 100644
> --- a/include/linux/efi.h
> +++ b/include/linux/efi.h
> @@ -1053,6 +1053,8 @@ extern struct kobject *efi_kobj;
> extern int efi_reboot_quirk_mode;
> extern bool efi_poweroff_required(void);
>
> +extern void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
> +
> #ifdef CONFIG_EFI_FAKE_MEMMAP
> extern void __init efi_fake_memmap(void);
> #else
These efifb_setup_from_dmi() changes were completely bogus and broke
every non-x86 EFI architecture, which a simple:
git grep efifb_setup_from_dmi
should have already exposed.
Did you actually check the usage of every single prototype and think
about them case by case? It doesn't seem to be the case.
Thanks,
Ingo