aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/lib
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2013-04-10 10:45:21 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-04-16 15:35:43 -0400
commite00c73ee05dc38ecaccced55d4f5fc58b0b769f7 (patch)
tree484ae1dfa6e4d7c57bfdd17106bab1a1639f66c5 /arch/m68k/lib
parent01a18d168776f27309e49c983415de9851d6cb57 (diff)
m68k: Remove inline strlen() implementation
GCC can replace a strncat() call with constant second argument into a strlen + store, which results in a link error: ERROR: "strlen" [net/ipv4/ip_tunnel.ko] undefined! The inline function is a simple for loop in C. Other architectures either use an asm optimized variant, or use the generic function from lib/string.c. Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/lib')
-rw-r--r--arch/m68k/lib/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/lib/string.c b/arch/m68k/lib/string.c
index b9a57abfad08..4d61fa8a112c 100644
--- a/arch/m68k/lib/string.c
+++ b/arch/m68k/lib/string.c
@@ -17,6 +17,6 @@ EXPORT_SYMBOL(strcpy);
17 17
18char *strcat(char *dest, const char *src) 18char *strcat(char *dest, const char *src)
19{ 19{
20 return __kernel_strcpy(dest + __kernel_strlen(dest), src); 20 return __kernel_strcpy(dest + strlen(dest), src);
21} 21}
22EXPORT_SYMBOL(strcat); 22EXPORT_SYMBOL(strcat);