[SRU][FOCAL][PATCH 04/16] efi: mokvar: add missing include of asm/early_ioremap.h

Dimitri John Ledkov dimitri.ledkov at canonical.com
Fri Oct 1 15:44:20 UTC 2021

From: Ard Biesheuvel <ardb at kernel.org>

BugLink: https://bugs.launchpad.net/bugs/1928679

Nathan reports that building the new mokvar table code for 32-bit
ARM fails with errors such as

  error: implicit declaration of function 'early_memunmap'
  error: implicit declaration of function 'early_memremap'

This is caused by the lack of an explicit #include of the appropriate
header, and ARM apparently does not inherit that inclusion via another
header file. So add the #include.

Tested-by: Nathan Chancellor <natechancellor at gmail.com>
Signed-off-by: Ard Biesheuvel <ardb at kernel.org>
(cherry picked from commit cc383a9e245c527d3175e2cf4cced9dbbedbbac6)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov at canonical.com>
 drivers/firmware/efi/mokvar-table.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/firmware/efi/mokvar-table.c b/drivers/firmware/efi/mokvar-table.c
index 72a9e1736f..d8bc013406 100644
--- a/drivers/firmware/efi/mokvar-table.c
+++ b/drivers/firmware/efi/mokvar-table.c
@@ -40,6 +40,8 @@
 #include <linux/list.h>
 #include <linux/slab.h>
+#include <asm/early_ioremap.h>
  * The LINUX_EFI_MOK_VARIABLE_TABLE_GUID config table is a packed
  * sequence of struct efi_mokvar_table_entry, one for each named

More information about the kernel-team mailing list