public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] provide out-of-line strcat() for m68k
@ 2008-05-21  1:12 Al Viro
  2008-05-21  3:34 ` Roman Zippel
  2008-05-21  7:52 ` -ffreestanding or not -ffreestanding Adrian Bunk
  0 siblings, 2 replies; 7+ messages in thread
From: Al Viro @ 2008-05-21  1:12 UTC (permalink / raw)
  To: torvalds; +Cc: geert, linux-m68k, linux-kernel

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



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-05-21 11:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21  1:12 [PATCH] provide out-of-line strcat() for m68k Al Viro
2008-05-21  3:34 ` Roman Zippel
2008-05-21  5:30   ` Al Viro
2008-05-21 10:53     ` Roman Zippel
2008-05-21 11:09       ` Al Viro
2008-05-21  7:52 ` -ffreestanding or not -ffreestanding Adrian Bunk
2008-05-21 11:44   ` Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox