In preparation of adding ARM support, avoid compiling the efi_config_init() function, which ARM and arm64 do not use, and which can only be built if early ioremap() is supported, which is not the case on ARM.
Signed-off-by: Ard Biesheuvel ard.biesheuvel@linaro.org --- drivers/firmware/efi/efi.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 3061bb8629dc..03a6b313568c 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -336,6 +336,7 @@ int __init efi_config_parse_tables(void *config_tables, int count, int sz, return 0; }
+#ifdef CONFIG_GENERIC_EARLY_IOREMAP int __init efi_config_init(efi_config_table_type_t *arch_tables) { void *config_tables; @@ -362,6 +363,7 @@ int __init efi_config_init(efi_config_table_type_t *arch_tables) early_memunmap(config_tables, efi.systab->nr_tables * sz); return ret; } +#endif
#ifdef CONFIG_EFI_VARS_MODULE static int __init efi_load_efivars(void)