The patch titled Subject: arch/x86/include/asm/efi.h: fix build failure has been added to the -mm tree. Its filename is x86-fix-build-failure.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/x86-fix-build-failure.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/x86-fix-build-failure.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> Subject: arch/x86/include/asm/efi.h: fix build failure With KMEMCHECK=y, KASAN=n: arch/x86/platform/efi/efi.c:673:3: error: implicit declaration of function `memcpy' [-Werror=implicit-function-declaration] arch/x86/platform/efi/efi_64.c:139:2: error: implicit declaration of function `memcpy' [-Werror=implicit-function-declaration] arch/x86/include/asm/desc.h:121:2: error: implicit declaration of function `memcpy' [-Werror=implicit-function-declaration] Don't #undef memcpy if KASAN=n. Fixes: 769a8089c1fd ("x86, efi, kasan: #undef memset/memcpy/memmove per arch") Signed-off-by: Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> Reported-by: Ingo Molnar <mingo@xxxxxxxxxx> Reported-by: Sedat Dilek <sedat.dilek@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/include/asm/efi.h | 2 ++ 1 file changed, 2 insertions(+) diff -puN arch/x86/include/asm/efi.h~x86-fix-build-failure arch/x86/include/asm/efi.h --- a/arch/x86/include/asm/efi.h~x86-fix-build-failure +++ a/arch/x86/include/asm/efi.h @@ -86,6 +86,7 @@ extern u64 asmlinkage efi_call(void *fp, extern void __iomem *__init efi_ioremap(unsigned long addr, unsigned long size, u32 type, u64 attribute); +#ifdef CONFIG_KASAN /* * CONFIG_KASAN may redefine memset to __memset. __memset function is present * only in kernel binary. Since the EFI stub linked into a separate binary it @@ -95,6 +96,7 @@ extern void __iomem *__init efi_ioremap( #undef memcpy #undef memset #undef memmove +#endif #endif /* CONFIG_X86_32 */ _ Patches currently in -mm which might be from ryabinin.a.a@xxxxxxxxx are x86-fix-build-failure.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html