kernel: fix MIPS memory function optimization build error in decompressor
authorFelix Fietkau <nbd@nbd.name>
Tue, 28 Feb 2017 05:53:39 +0000 (06:53 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 28 Feb 2017 19:22:10 +0000 (20:22 +0100)
commitf9da6238e49e90f5e687b9f205583af264c029a1
treea94b693501524f937303e693a7f46edb1466c7f5
parenta29163faabc82fd370419cd1cb48e891ddade8a3
kernel: fix MIPS memory function optimization build error in decompressor

Fixes the following build error:
  CC      arch/mips/boot/compressed/decompress.o
  OBJCOPY arch/mips/boot/compressed/vmlinux.bin
  XZKERN  arch/mips/boot/compressed/vmlinux.bin.z
  OBJCOPY arch/mips/boot/compressed/piggy.o
  LD      vmlinuz
arch/mips/boot/compressed/decompress.o: In function `lzma2_lzma':
/tmp2/mehrtens/linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:884: undefined reference to `memmove'
make[1]: *** [vmlinuz] Error 1
make: *** [vmlinuz] Error 2

lib/decompress_unxz.c only defines its own memmove function if there is no
macro with the same name.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/generic/patches-4.9/306-mips_mem_functions_performance.patch