diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-02-03 21:31:20 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-02-16 09:42:24 +1000 |
commit | f9d693d237a173915fcfbd86b28753f93b7d142f (patch) | |
tree | 5d43d2a973f8e4822a4afd8256640d2b42860230 /arch/m68k/lib | |
parent | b3e338de7e11d1e5bc4eca12833d894d1838b510 (diff) | |
download | op-kernel-dev-f9d693d237a173915fcfbd86b28753f93b7d142f.zip op-kernel-dev-f9d693d237a173915fcfbd86b28753f93b7d142f.tar.gz |
m68k: remove arch specific non-optimized memcmp()
The m68k arch implements its own memcmp() function. It is not optimized
in any way (it is the most strait forward coding of memcmp you can get).
Remove it and use the kernels standard memcmp() implementation.
This also goes part of the way to fixing a regression caused by commit
ea61bc461d09e8d331a307916530aaae808c72a2 ("m68k/m68knommu: merge MMU and
non-MMU string.h"), which breaks non-coldfire non-mmu builds (which is
the 68x328 and 68360 families). They currently have no memcmp() function
defined, since there is none in the m68knommu/lib functions.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/lib')
-rw-r--r-- | arch/m68k/lib/string.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/m68k/lib/string.c b/arch/m68k/lib/string.c index 4253f87..d399c5f 100644 --- a/arch/m68k/lib/string.c +++ b/arch/m68k/lib/string.c @@ -243,14 +243,3 @@ void *memmove(void *dest, const void *src, size_t n) return xdest; } EXPORT_SYMBOL(memmove); - -int memcmp(const void *cs, const void *ct, size_t count) -{ - const unsigned char *su1, *su2; - - for (su1 = cs, su2 = ct; count > 0; ++su1, ++su2, count--) - if (*su1 != *su2) - return *su1 < *su2 ? -1 : +1; - return 0; -} -EXPORT_SYMBOL(memcmp); |