OSDN Git Service

m68k: disable builtins for 68000.
authorYoshinori Sato <ysato@users.sourceforge.jp>
Sat, 26 Mar 2016 12:45:15 +0000 (21:45 +0900)
committerYoshinori Sato <yo-satoh@sios.com>
Thu, 23 Jan 2020 03:39:36 +0000 (12:39 +0900)
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
arch/m68k/include/asm/string.h

index f759d94..7fc2738 100644 (file)
@@ -60,15 +60,21 @@ static inline int strcmp(const char *cs, const char *ct)
 
 #define __HAVE_ARCH_MEMMOVE
 extern void *memmove(void *, const void *, __kernel_size_t);
-
+#ifndef CONFIG_M68000
 #define memcmp(d, s, n) __builtin_memcmp(d, s, n)
+#endif
 
 #define __HAVE_ARCH_MEMSET
 extern void *memset(void *, int, __kernel_size_t);
+#ifndef CONFIG_M68000
 #define memset(d, c, n) __builtin_memset(d, c, n)
+#endif
 
 #define __HAVE_ARCH_MEMCPY
 extern void *memcpy(void *, const void *, __kernel_size_t);
+#ifndef CONFIG_M68000
 #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
+#endif
 
 #endif /* _M68K_STRING_H_ */