aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/platform/efi/efi.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-01-22 15:05:12 +0100
committerArd Biesheuvel <ardb@kernel.org>2020-02-23 21:59:42 +0100
commita17e809ea573e69474064ba2bbff06d212861e19 (patch)
tree2c1690e992d9d73eb250e5f9122a616cc0abaaec /arch/x86/platform/efi/efi.c
parentefi: Make rng_seed table handling local to efi.c (diff)
downloadlinux-dev-a17e809ea573e69474064ba2bbff06d212861e19.tar.xz
linux-dev-a17e809ea573e69474064ba2bbff06d212861e19.zip
efi: Move mem_attr_table out of struct efi
The memory attributes table is only used at init time by the core EFI code, so there is no need to carry its address in struct efi that is shared with the world. So move it out, and make it __ro_after_init as well, considering that the value is set during early boot. Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64 Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'arch/x86/platform/efi/efi.c')
-rw-r--r--arch/x86/platform/efi/efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index 421f082535c5..22dc3678cdba 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -83,7 +83,7 @@ static const unsigned long * const efi_tables[] = {
&efi.config_table,
&efi.esrt,
&prop_phys,
- &efi.mem_attr_table,
+ &efi_mem_attr_table,
#ifdef CONFIG_EFI_RCI2_TABLE
&rci2_table_phys,
#endif