Skip to content

Commit 45fef4c

Browse files
committed
csky: abiv1: Fixup compile error
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: e4df2d5 ("csky: Add C based string functions") Signed-off-by: Guo Ren <[email protected]> Signed-off-by: Guo Ren <[email protected]> Cc: <[email protected]>
1 parent f940dc0 commit 45fef4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/csky/abiv1/inc/abi/string.h

+6
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
#define __HAVE_ARCH_MEMCPY
77
extern void *memcpy(void *, const void *, __kernel_size_t);
88

9+
#define __HAVE_ARCH_MEMMOVE
10+
extern void *memmove(void *, const void *, __kernel_size_t);
11+
12+
#define __HAVE_ARCH_MEMSET
13+
extern void *memset(void *, int, __kernel_size_t);
14+
915
#endif /* __ABI_CSKY_STRING_H */

0 commit comments

Comments
 (0)