diff options
author | Matt Fleming <matt@codeblueprint.co.uk> | 2015-10-04 00:26:07 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-10-11 11:04:18 +0200 |
commit | 0ce423b6492a02be11662bfaa837dd16945aad3e (patch) | |
tree | 2f19fb9a508201dc3744b064e51f65dfa6475282 /arch/x86/mm/fault.c | |
parent | acpi/apei: Use appropriate pgprot_t to map GHES memory (diff) | |
download | linux-0ce423b6492a02be11662bfaa837dd16945aad3e.tar.xz linux-0ce423b6492a02be11662bfaa837dd16945aad3e.zip |
efi: Use the generic efi.memmap instead of 'memmap'
Guenter reports that commit:
7bf793115dd9 ("efi, x86: Rearrange efi_mem_attributes()")
breaks the IA64 compilation with the following error:
drivers/built-in.o: In function `efi_mem_attributes': (.text+0xde962): undefined reference to `memmap'
Instead of using the (rather poorly named) global variable
'memmap' which doesn't exist on IA64, use efi.memmap which
points to the 'memmap' object on x86 and arm64 and which is NULL
for IA64.
The fact that efi.memmap is NULL for IA64 is OK because IA64
provides its own implementation of efi_mem_attributes().
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jonathan Zhang <zjzhang@codeaurora.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Link: http://lkml.kernel.org/r/20151003222607.GA2682@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/fault.c')
0 files changed, 0 insertions, 0 deletions