]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
provide out-of-line strcat() for m68k
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 21 May 2008 05:32:11 +0000 (06:32 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 21 May 2008 23:56:00 +0000 (16:56 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68k/lib/string.c

index 891e1347bc4e4c1de3d0455d40905dce19992b08..4253f870e54fc8fe24d510bfef948c3751300a69 100644 (file)
@@ -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;