Remove unused bcopy() implementation.
authorKeir Fraser <keir.fraser@citrix.com>
Sat, 24 Nov 2007 22:33:38 +0000 (22:33 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Sat, 24 Nov 2007 22:33:38 +0000 (22:33 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/string.c
xen/include/asm-powerpc/powerpc64/string.h

index 562f6cb585d2886774e5319980f5d50099c294e5..5f08f22484215b626b3cdc407e47d2998036d899 100644 (file)
@@ -294,30 +294,6 @@ void * memset(void * s,int c,size_t count)
 }
 #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
index 02ef66d84c05cdecad2b861a8015b46c4503779b..3c3876b2fd90ba4c30bd4782f63436901e2a2d48 100644 (file)
@@ -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