diff mbox series

[SRU,BIONIC,03/16] efi: mokvar: add missing include of asm/early_ioremap.h

Message ID 20211130110416.171269-4-dimitri.ledkov@canonical.com
State New
Headers show
Series Support builtin revoked certificates and mokvar-table | expand

Commit Message

Dimitri John Ledkov Nov. 30, 2021, 11:04 a.m. UTC
From: Ard Biesheuvel <ardb@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@gmail.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
(cherry picked from commit cc383a9e245c527d3175e2cf4cced9dbbedbbac6)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
---
 drivers/firmware/efi/mokvar-table.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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