aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/lib/strcpy.c
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2010-05-03 17:23:20 +0000
committerMike Frysinger <vapier@gentoo.org>2010-05-22 14:19:09 -0400
commit479ba6035862a9c08ce4351c7fff8926fde4ede5 (patch)
tree93a6419ffdfd38056f26d4362de450f79af044b3 /arch/blackfin/lib/strcpy.c
parentBlackfin: SIC: cut down on IAR MMR reads a bit (diff)
downloadlinux-dev-479ba6035862a9c08ce4351c7fff8926fde4ede5.tar.xz
linux-dev-479ba6035862a9c08ce4351c7fff8926fde4ede5.zip
Blackfin: move string functions to normal lib/ assembly
Since 'extern inline' doesn't work correctly in the context of the Linux kernel (too many overriding defines), move the string functions to normal lib/ assembly files (like the existing mem funcs). This avoids the forced inline all over the kernel and allows us to place them constantly in L1. This also avoids some module failures when gcc inserts calls to string functions but the kernel build system doesn't fully consult the library archives. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/lib/strcpy.c')
-rw-r--r--arch/blackfin/lib/strcpy.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/blackfin/lib/strcpy.c b/arch/blackfin/lib/strcpy.c
deleted file mode 100644
index 2a8836b1f4d3..000000000000
--- a/arch/blackfin/lib/strcpy.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Provide symbol in case str func is not inlined.
- *
- * Copyright (c) 2006-2007 Analog Devices Inc.
- *
- * Licensed under the GPL-2 or later.
- */
-
-#define strcpy __inline_strcpy
-#include <asm/string.h>
-#undef strcpy
-
-#include <linux/module.h>
-
-char *strcpy(char *dest, const char *src)
-{
- return __inline_strcpy(dest, src);
-}
-EXPORT_SYMBOL(strcpy);