* tip-bot for Tom Lendacky wrote: > Commit-ID: 5997efb967565e858259401af394e8449629c1f0 > Gitweb: http://git.kernel.org/tip/5997efb967565e858259401af394e8449629c1f0 > Author: Tom Lendacky > AuthorDate: Mon, 17 Jul 2017 16:10:17 -0500 > Committer: Ingo Molnar > CommitDate: Tue, 18 Jul 2017 11:38:02 +0200 > > x86/boot: Use memremap() to map the MPF and MPC data > > The SMP MP-table is built by UEFI and placed in memory in a decrypted > state. These tables are accessed using a mix of early_memremap(), > early_memunmap(), phys_to_virt() and virt_to_phys(). Change all accesses > to use early_memremap()/early_memunmap(). This allows for proper setting > of the encryption mask so that the data can be successfully accessed when > SME is active. There's a build failure caused by this commit, with the attached (randconfig) config: drivers/sfi/sfi_core.c: In function ‘sfi_map_memory’: drivers/sfi/sfi_core.c:104:10: error: implicit declaration of function ‘memremap’ [-Werror=implicit-function-declaration] drivers/sfi/sfi_core.c:104:31: error: ‘MEMREMAP_WB’ undeclared (first use in this function) This is a case of parasitic header dependencies: the sfi_core.c file indirectly includes for typical - but not all configs. Including explicitly solves the build failure. Signed-off-by: Ingo Molnar --- drivers/sfi/sfi_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/sfi/sfi_core.c b/drivers/sfi/sfi_core.c index d5ce53491efb..153b3f3cc795 100644 --- a/drivers/sfi/sfi_core.c +++ b/drivers/sfi/sfi_core.c @@ -68,6 +68,7 @@ #include #include #include +#include #include "sfi_core.h"