]> git.baikalelectronics.ru Git - kernel.git/commitdiff
csky: abiv1: Fixup compile error
authorGuo Ren <guoren@linux.alibaba.com>
Mon, 1 Aug 2022 02:34:24 +0000 (22:34 -0400)
committerGuo Ren <guoren@linux.alibaba.com>
Mon, 1 Aug 2022 02:39:23 +0000 (22:39 -0400)
  LD      vmlinux.o
arch/csky/lib/string.o: In function `memmove':
string.c:(.text+0x108): multiple definition of `memmove'
lib/string.o:string.c:(.text+0x7e8): first defined here
arch/csky/lib/string.o: In function `memset':
string.c:(.text+0x148): multiple definition of `memset'
lib/string.o:string.c:(.text+0x2ac): first defined here
scripts/Makefile.vmlinux_o:68: recipe for target 'vmlinux.o' failed
make[4]: *** [vmlinux.o] Error 1

Fixes: 25d4cc2fe73f ("csky: Add C based string functions")
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Cc: <stable@vger.kernel.org>
arch/csky/abiv1/inc/abi/string.h

index 9d95594b0febfc3aba5bd5c57c0984ffe6fcf366..de50117b904d948bf80132ca95ad036c567e173b 100644 (file)
@@ -6,4 +6,10 @@
 #define __HAVE_ARCH_MEMCPY
 extern void *memcpy(void *, const void *, __kernel_size_t);
 
+#define __HAVE_ARCH_MEMMOVE
+extern void *memmove(void *, const void *, __kernel_size_t);
+
+#define __HAVE_ARCH_MEMSET
+extern void *memset(void *, int,  __kernel_size_t);
+
 #endif /* __ABI_CSKY_STRING_H */