new file mode 100644
@@ -0,0 +1,41 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Early ioremap definitions
+ *
+ * Copyright (C) 2019 IBM Corporation
+ * Author: Claudio Carvalho <cclaudio@linux.ibm.com>
+ *
+ */
+#ifndef _ASM_POWERPC_EARLY_IOREMAP_H
+#define _ASM_POWERPC_EARLY_IOREMAP_H
+
+static inline void __iomem *early_ioremap(resource_size_t phys_addr,
+ unsigned long size)
+{
+ return NULL;
+}
+
+static inline void *early_memremap(resource_size_t phys_addr,
+ unsigned long size)
+{
+ return NULL;
+}
+
+static inline void *early_memremap_ro(resource_size_t phys_addr,
+ unsigned long size)
+{
+ return NULL;
+}
+
+static inline void *early_memremap_prot(resource_size_t phys_addr,
+ unsigned long size,
+ unsigned long prot_val)
+{
+ return NULL;
+}
+
+static inline void early_iounmap(void __iomem *addr, unsigned long size) { }
+static inline void early_memunmap(void *addr, unsigned long size) { }
+static inline void early_ioremap_shutdown(void) { }
+
+#endif
When CONFIG_EFI is enabled, the EFI driver includes the generic early_ioremap header, which assumes that architectures may want to provide their own early ioremap functions. This patch overrides the ioremap functions in powerpc because they are not required for secure boot on powerpc systems. Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com> --- arch/powerpc/include/asm/early_ioremap.h | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 arch/powerpc/include/asm/early_ioremap.h