|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Remove unused bcopy() implementation.
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1195943618 0
# Node ID 9fd36167ecfa06960c94a1975ac2686da2a004e0
# Parent ad632e4f26d4dbb7bb3d461d0421145c62bb183b
Remove unused bcopy() implementation.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
xen/common/string.c | 24 ------------------------
xen/include/asm-powerpc/powerpc64/string.h | 1 -
2 files changed, 25 deletions(-)
diff -r ad632e4f26d4 -r 9fd36167ecfa xen/common/string.c
--- a/xen/common/string.c Sat Nov 24 22:19:03 2007 +0000
+++ b/xen/common/string.c Sat Nov 24 22:33:38 2007 +0000
@@ -294,30 +294,6 @@ void * memset(void * s,int c,size_t coun
}
#endif
-#ifndef __HAVE_ARCH_BCOPY
-/**
- * bcopy - Copy one area of memory to another
- * @src: Where to copy from
- * @dest: Where to copy to
- * @count: The size of the area.
- *
- * Note that this is the same as memcpy(), with the arguments reversed.
- * memcpy() is the standard, bcopy() is a legacy BSD function.
- *
- * You should not use this function to access IO space, use memcpy_toio()
- * or memcpy_fromio() instead.
- */
-char * bcopy(const char * src, char * dest, int count)
-{
- char *tmp = dest;
-
- while (count--)
- *tmp++ = *src++;
-
- return dest;
-}
-#endif
-
#ifndef __HAVE_ARCH_MEMCPY
/**
* memcpy - Copy one area of memory to another
diff -r ad632e4f26d4 -r 9fd36167ecfa xen/include/asm-powerpc/powerpc64/string.h
--- a/xen/include/asm-powerpc/powerpc64/string.h Sat Nov 24 22:19:03
2007 +0000
+++ b/xen/include/asm-powerpc/powerpc64/string.h Sat Nov 24 22:33:38
2007 +0000
@@ -18,7 +18,6 @@
#define __HAVE_ARCH_STRCMP
#define __HAVE_ARCH_STRCAT
#define __HAVE_ARCH_MEMSET
-#define __HAVE_ARCH_BCOPY
#define __HAVE_ARCH_MEMCPY
#define __HAVE_ARCH_MEMMOVE
#define __HAVE_ARCH_MEMCMP
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Remove unused bcopy() implementation.,
Xen patchbot-unstable <=
|
|
|
|
|