kernel: add missing symbol
[15.05/openwrt.git] / target / linux / generic / patches-3.10 / 062-mips_decompressor_memcpy_memset_redefinition.patch
1 --- a/arch/mips/boot/compressed/decompress.c
2 +++ b/arch/mips/boot/compressed/decompress.c
3 @@ -45,6 +45,7 @@ void error(char *x)
4  #define STATIC static
5  
6  #ifdef CONFIG_KERNEL_GZIP
7 +#undef memcpy
8  void *memcpy(void *dest, const void *src, size_t n)
9  {
10         int i;
11 @@ -59,6 +60,7 @@ void *memcpy(void *dest, const void *src
12  #endif
13  
14  #ifdef CONFIG_KERNEL_BZIP2
15 +#undef memset
16  void *memset(void *s, int c, size_t n)
17  {
18         int i;