diff options
author | Borislav Petkov <[email protected]> | 2020-03-18 19:27:48 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-03-19 10:55:56 +0100 |
commit | 870b4333a62e45b0b2000d14b301b7b8b8cad9da (patch) | |
tree | 88187aa363c35ddf18c39cea871a7f7e6c23c796 /tools/testing/selftests/bpf/progs | |
parent | fb33c6510d5595144d585aa194d377cf74d31911 (diff) |
x86/ioremap: Fix CONFIG_EFI=n build
In order to use efi_mem_type(), one needs CONFIG_EFI enabled. Otherwise
that function is undefined. Use IS_ENABLED() to check and avoid the
ifdeffery as the compiler optimizes away the following unreachable code
then.
Fixes: 985e537a4082 ("x86/ioremap: Map EFI runtime services data as encrypted for SEV")
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs')
0 files changed, 0 insertions, 0 deletions