m32r: add memcpy() for CONFIG_KERNEL_GZIP=y
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 17 Jul 2012 22:48:04 +0000 (15:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Jul 2012 23:21:30 +0000 (16:21 -0700)
commita8abbca6617e1caa2344d2d38d0a35f3e5928b79
treee107379b1ab3ab636f9505d338aa74f628a615cd
parentdf12aef6a19bb2d69859a94936bda0e6ccaf3327
m32r: add memcpy() for CONFIG_KERNEL_GZIP=y

Fix the m32r link error:

    LD      arch/m32r/boot/compressed/vmlinux
  arch/m32r/boot/compressed/misc.o: In function `zlib_updatewindow':
  misc.c:(.text+0x190): undefined reference to `memcpy'
  misc.c:(.text+0x190): relocation truncated to fit: R_M32R_26_PLTREL against undefined symbol `memcpy'
  make[5]: *** [arch/m32r/boot/compressed/vmlinux] Error 1

by adding our own implementation of memcpy().

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m32r/boot/compressed/misc.c