efi: Move mem_attr_table out of struct efi
authorArd Biesheuvel <ardb@kernel.org>
Wed, 22 Jan 2020 14:05:12 +0000 (15:05 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commita17e809ea573e69474064ba2bbff06d212861e19
tree2c1690e992d9d73eb250e5f9122a616cc0abaaec
parent5d288dbd88606d8f215c7138b10649115d79cadd
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>
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi.c
drivers/firmware/efi/memattr.c
include/linux/efi.h