efi: Move efifb_setup_from_dmi() prototype from arch headers
commit 4bc5e64e upstream. Commit 8633ef82 ("drivers/firmware: consolidate EFI framebuffer setup for all arches") made the Generic System Framebuffers (sysfb) driver able to be built on non-x86 architectures. But it left the efifb_setup_from_dmi() function prototype declaration in the architecture specific headers. This could lead to the following compiler warning as reported by the kernel test robot: drivers/firmware/efi/sysfb_efi.c:70:6: warning: no previous prototype for function 'efifb_setup_from_dmi' [-Wmissing-prototypes] void efifb_setup_from_dmi(struct screen_info *si, const char *opt) ^ drivers/firmware/efi/sysfb_efi.c:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void efifb_setup_from_dmi(struct screen_info *si, const char *opt) Fixes: 8633ef82 ("drivers/firmware: consolidate EFI framebuffer setup for all arches") Reported-by:kernel test robot <lkp@intel.com> Cc: <stable@vger.kernel.org> # 5.15.x Signed-off-by:
Javier Martinez Canillas <javierm@redhat.com> Acked-by:
Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20211126001333.555514-1-javierm@redhat.com Signed-off-by:
Ard Biesheuvel <ardb@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
5677e077
No related branches found
No related tags found
Showing
- arch/arm/include/asm/efi.h 0 additions, 1 deletionarch/arm/include/asm/efi.h
- arch/arm64/include/asm/efi.h 0 additions, 1 deletionarch/arm64/include/asm/efi.h
- arch/riscv/include/asm/efi.h 0 additions, 1 deletionarch/riscv/include/asm/efi.h
- arch/x86/include/asm/efi.h 0 additions, 2 deletionsarch/x86/include/asm/efi.h
- include/linux/efi.h 6 additions, 0 deletionsinclude/linux/efi.h
Loading
Please register or sign in to comment