efi: Clean up config table description arrays
Increase legibility by adding whitespace to the efi_config_table_type_t arrays that describe which EFI config tables we look for when going over the firmware provided list. While at it, replace the 'name' char pointer with a char array, which is more space efficient on relocatable 64-bit kernels, as it avoids a 8 byte pointer and the associated relocation data (24 bytes when using RELA format) Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
@@ -62,12 +62,12 @@ static unsigned long efi_runtime, efi_nr_tables;
|
||||
unsigned long efi_fw_vendor, efi_config_table;
|
||||
|
||||
static const efi_config_table_type_t arch_tables[] __initconst = {
|
||||
{EFI_PROPERTIES_TABLE_GUID, "PROP", &prop_phys},
|
||||
{UGA_IO_PROTOCOL_GUID, "UGA", &uga_phys},
|
||||
{EFI_PROPERTIES_TABLE_GUID, &prop_phys, "PROP" },
|
||||
{UGA_IO_PROTOCOL_GUID, &uga_phys, "UGA" },
|
||||
#ifdef CONFIG_X86_UV
|
||||
{UV_SYSTEM_TABLE_GUID, "UVsystab", &uv_systab_phys},
|
||||
{UV_SYSTEM_TABLE_GUID, &uv_systab_phys, "UVsystab" },
|
||||
#endif
|
||||
{NULL_GUID, NULL, NULL},
|
||||
{},
|
||||
};
|
||||
|
||||
static const unsigned long * const efi_tables[] = {
|
||||
|
Fai riferimento in un nuovo problema
Block a user