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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user