Re: ./arch/x86/include/asm/desc.h:122:2: error: implicit declaration of function âmemcpyâ [-Werror=implicit-function-declaration]

From: Andrey Ryabinin
Date: Thu Oct 15 2015 - 03:32:00 EST


2015-10-15 0:47 GMT+03:00 Borislav Petkov <bp@xxxxxxxxx>:
> Hey,
>
> did the issue in $Subject get fixed somewhere?
>
> I remember reading something about it on lkml ...

I'm an idiot :(
The same failure was fixed for KMEMCHECK=y && KASAN=n config
But that fix didn't fix the KMEMCHECK=y && KASAN=y case.

>
> In any case, I'm seeing this in my randconfig builds:
>
> In file included from arch/x86/kernel/setup.c:96:0:
> ./arch/x86/include/asm/desc.h: In function ânative_write_idt_entryâ:
> ./arch/x86/include/asm/desc.h:122:2: error: implicit declaration of function âmemcpyâ [-Werror=implicit-function-declaration]
> memcpy(&idt[entry], gate, sizeof(*gate));
> ^
> cc1: some warnings being treated as errors
> make[2]: *** [arch/x86/kernel/setup.o] Error 1
>
> and CONFIG_KASAN is set in that randconfig (attached).
>
> When I disable it, same config builds fine.
>
> Hmmm...
>
> --
> Regards/Gruss,
> Boris.
>
> ECO tip #101: Trim your mails when you reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/