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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2013 00:57:38 +0000 (01:57 +0100)
commitd2cd7ba97d9a22d88aaead8ce3f067c136b7530b
tree2f29fef14e32f3444e4c9960ab4962f8db7bf320
parent9853c4cbe68d791f5e81ea0966a9e1a9fbcff406
m32r: add memcpy() for CONFIG_KERNEL_GZIP=y

commit a8abbca6617e1caa2344d2d38d0a35f3e5928b79 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/m32r/boot/compressed/misc.c