• Ard Biesheuvel's avatar
    efi: Clean up config_parse_tables() · 06c0bd93
    Ard Biesheuvel authored
    config_parse_tables() is a jumble of pointer arithmetic, due to the
    fact that on x86, we may be dealing with firmware whose native word
    size differs from the kernel's.
    
    This is not a concern on other architectures, and doesn't quite
    justify the state of the code, so let's clean it up by adding a
    non-x86 code path, constifying statically allocated tables and
    replacing preprocessor conditionals with IS_ENABLED() checks.
    
    Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64
    Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
    06c0bd93
efi.c 35.6 KB