[PATCH] provide out-of-line strcat() for m68k

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <torvalds@...>
Cc: <geert@...>, <linux-m68k@...>, <linux-kernel@...>
Date: Tuesday, May 20, 2008 - 9:12 pm

Content-Length: 788
Lines: 30

Whether we sidestep it in init/main.c or not, such situations
will arise again; compiler does generate calls of strcat()
on optimizations, so we really ought to have an out-of-line
version...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 arch/m68k/lib/string.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/m68k/lib/string.c b/arch/m68k/lib/string.c
index 891e134..4253f87 100644
--- a/arch/m68k/lib/string.c
+++ b/arch/m68k/lib/string.c
@@ -15,6 +15,12 @@ char *strcpy(char *dest, const char *src)
 }
 EXPORT_SYMBOL(strcpy);
 
+char *strcat(char *dest, const char *src)
+{
+	return __kernel_strcpy(dest + __kernel_strlen(dest), src);
+}
+EXPORT_SYMBOL(strcat);
+
 void *memset(void *s, int c, size_t count)
 {
 	void *xs = s;
-- 
1.5.3.GIT


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] provide out-of-line strcat() for m68k, Al Viro, (Tue May 20, 9:12 pm)
-ffreestanding or not -ffreestanding, Adrian Bunk, (Wed May 21, 3:52 am)
Re: -ffreestanding or not -ffreestanding, Roman Zippel, (Wed May 21, 7:44 am)
Re: [PATCH] provide out-of-line strcat() for m68k, Roman Zippel, (Tue May 20, 11:34 pm)
Re: [PATCH] provide out-of-line strcat() for m68k, Roman Zippel, (Wed May 21, 6:53 am)