]> git.baikalelectronics.ru Git - kernel.git/commit
efi: sysfb_efi: remove unnecessary <asm/efi.h> include
authorJavier Martinez Canillas <javierm@redhat.com>
Fri, 10 Jun 2022 09:00:05 +0000 (11:00 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 21 Jun 2022 16:11:43 +0000 (18:11 +0200)
commit606c183f1567ce84db4a925ad80ad298798a4aa7
tree242b1b0625e057fd0702549e4bf3ef6e8c577f44
parentcf1710d1388cf5bd81996b258399c4907d27006e
efi: sysfb_efi: remove unnecessary <asm/efi.h> include

Nothing defined in the header is used by drivers/firmware/efi/sysfb_efi.c
but also, including it can lead to build errors when built on arches that
don't have an asm/efi.h header file.

This can happen for example if a driver that is built when COMPILE_TEST is
enabled selects the SYSFB symbol, e.g. on powerpc with allyesconfig:

drivers/firmware/efi/sysfb_efi.c:29:10: fatal error: asm/efi.h: No such file or directory
   29 | #include <asm/efi.h>
      |          ^~~~~~~~~~~

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/sysfb_efi.c