summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/fake_mem.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-10-01 18:38:15 +0200
committerArd Biesheuvel <ardb@kernel.org>2022-11-18 09:14:09 +0100
commit4059ba656ce5c13c8ca345955712152ae41420c8 (patch)
tree41b871969d78943c1d7d1b0dcf096ade94bb1b36 /drivers/firmware/efi/fake_mem.h
parent75e1a2460d79566bf1e43e5a3a7a9039510a82e0 (diff)
downloadlinux-stable-4059ba656ce5c13c8ca345955712152ae41420c8.tar.gz
linux-stable-4059ba656ce5c13c8ca345955712152ae41420c8.tar.bz2
linux-stable-4059ba656ce5c13c8ca345955712152ae41420c8.zip
efi: memmap: Move EFI fake memmap support into x86 arch tree
The EFI fake memmap support is specific to x86, which manipulates the EFI memory map in various different ways after receiving it from the EFI stub. On other architectures, we have managed to push back on this, and the EFI memory map is kept pristine. So let's move the fake memmap code into the x86 arch tree, where it arguably belongs. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/fake_mem.h')
-rw-r--r--drivers/firmware/efi/fake_mem.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/firmware/efi/fake_mem.h b/drivers/firmware/efi/fake_mem.h
deleted file mode 100644
index d52791af4b18..000000000000
--- a/drivers/firmware/efi/fake_mem.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __EFI_FAKE_MEM_H__
-#define __EFI_FAKE_MEM_H__
-#include <asm/efi.h>
-
-#define EFI_MAX_FAKEMEM CONFIG_EFI_MAX_FAKE_MEM
-
-extern struct efi_mem_range efi_fake_mems[EFI_MAX_FAKEMEM];
-extern int nr_fake_mem;
-#endif /* __EFI_FAKE_MEM_H__ */