Re: drivers/firmware/efi/libstub/efi-stub-helper.c:599:2: warning: implicit declaration of function 'memcpy'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 17 Sep 2015 09:17:56 +0800 kbuild test robot <fengguang.wu@xxxxxxxxx> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   72714841b705a5b9bccf37ee85a62352bee3a3ef
> commit: 393f203f5fd54421fddb1e2a263f64d3876eeadb x86_64: kasan: add interceptors for memset/memmove/memcpy functions
> date:   7 months ago
> config: i386-randconfig-i0-201537 (attached as .config)
> reproduce:
>   git checkout 393f203f5fd54421fddb1e2a263f64d3876eeadb
>   # save the attached .config to linux build tree
>   make ARCH=i386 
> 
> All warnings (new ones prefixed by >>):
> 
>    drivers/firmware/efi/libstub/efi-stub-helper.c: In function 'efi_relocate_kernel':
> >> drivers/firmware/efi/libstub/efi-stub-helper.c:599:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
>      memcpy((void *)new_addr, (void *)cur_image_addr, image_size);

I can't reproduce this.

But whatever.  I'll do this:

--- a/drivers/firmware/efi/libstub/efi-stub-helper.c~drivers-firmware-efi-libstub-efi-stub-helperc-needs-stringh
+++ a/drivers/firmware/efi/libstub/efi-stub-helper.c
@@ -11,6 +11,7 @@
  */
 
 #include <linux/efi.h>
+#include <linux/string.h>
 #include <asm/efi.h>
 
 #include "efistub.h"
_

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]