diff options
| author | Arjan van de Ven <arjan@infradead.org> | 2005-01-23 23:57:20 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-23 23:57:20 -0800 |
| commit | 11828b23fe6756b4e1174670102304be9e4b3bf7 (patch) | |
| tree | 8a248c3198d0f6b6bded3e2b828391cb5c225d17 /include/asm-alpha/string.h | |
| parent | 5dd0c5ab3653a48be61d6efe7c6531dbd04cc7d8 (diff) | |
[PATCH] removing bcopy... because it's half broken
Nothing in the kernel is using bcopy right know, and that is a good thing.
Why? Because a lot of the architectures implement a broken bcopy()....
the userspace standard bcopy() is basically a memmove() with a weird
parameter order, however a bunch of architectures implement a memcpy() not a
memmove().
Instead of fixing this inconsistency, I decided to remove it entirely,
explicit memcpy() and memmove() are prefered anyway (welcome to the 1990's)
and nothing in the kernel is using these functions, so this saves code size
as well for everyone.
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
[ Side note: the only reason for bcopy appears to be totally ancient
gcc versions for OSF/1, used to originally cross-compile Linux on
alpha. Possibly some other similar cases. Time to move on ;-]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-alpha/string.h')
| -rw-r--r-- | include/asm-alpha/string.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/asm-alpha/string.h b/include/asm-alpha/string.h index 4266af221932..9e44fea669bf 100644 --- a/include/asm-alpha/string.h +++ b/include/asm-alpha/string.h @@ -13,7 +13,6 @@ #define __HAVE_ARCH_MEMCPY extern void * memcpy(void *, const void *, size_t); #define __HAVE_ARCH_MEMMOVE -#define __HAVE_ARCH_BCOPY extern void * memmove(void *, const void *, size_t); /* For backward compatibility with modules. Unused otherwise. */ |
