diff options
author | Robin Getz <robin.getz@analog.com> | 2010-05-03 17:23:20 (GMT) |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-05-22 18:19:09 (GMT) |
commit | 479ba6035862a9c08ce4351c7fff8926fde4ede5 (patch) | |
tree | 93a6419ffdfd38056f26d4362de450f79af044b3 /arch/blackfin/lib/strncmp.c | |
parent | 80fcdb959343ab9e0ee95c11b5ea47c44a2c3004 (diff) | |
download | linux-fsl-qoriq-479ba6035862a9c08ce4351c7fff8926fde4ede5.tar.xz |
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/strncmp.c')
-rw-r--r-- | arch/blackfin/lib/strncmp.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/blackfin/lib/strncmp.c b/arch/blackfin/lib/strncmp.c deleted file mode 100644 index 46518b1..0000000 --- a/arch/blackfin/lib/strncmp.c +++ /dev/null @@ -1,18 +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 strncmp __inline_strncmp -#include <asm/string.h> -#include <linux/module.h> -#undef strncmp - -int strncmp(const char *cs, const char *ct, size_t count) -{ - return __inline_strncmp(cs, ct, count); -} -EXPORT_SYMBOL(strncmp); |