Skip to contentSkip to conversation

efi: sysfb_efi: remove unnecessary <asm/efi.h> include

PATCH Applied Javier Martinez Canillas 2 participants 2 messages Jun 10, 2022 EFI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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>

      |          ^~~~~~~~~~~

---

 drivers/firmware/efi/sysfb_efi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/firmware/efi/sysfb_efi.c +0 -2
index 4c7c9dd7733f..7882d4b3f2be 100644
@@ -26,8 +26,6 @@
 #include <linux/sysfb.h>
 #include <video/vga.h>
 
-#include <asm/efi.h>
-
 enum {
 	OVERRIDE_NONE = 0x0,
 	OVERRIDE_BASE = 0x1,
Signature · 1 line
2.36.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Javier Martinez Canillas

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:

Quoted 6 lines

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

      |          ^~~~~~~~~~~

Queued up in efi/urgent, thanks

Quoted 21 lines

---

 drivers/firmware/efi/sysfb_efi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/firmware/efi/sysfb_efi.c +0 -3
index 4c7c9dd7733f..7882d4b3f2be 100644
@@ -26,8 +26,6 @@
 #include <linux/sysfb.h>
 #include <video/vga.h>
 
-#include <asm/efi.h>
-
 enum {
        OVERRIDE_NONE = 0x0,
        OVERRIDE_BASE = 0x1,
--

2.36.1