ia64/xen-unstable

changeset 16457:9fd36167ecfa

Remove unused bcopy() implementation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Nov 24 22:33:38 2007 +0000 (2007-11-24)
parents ad632e4f26d4
children ce3e5e859d66
files xen/common/string.c xen/include/asm-powerpc/powerpc64/string.h
line diff
     1.1 --- a/xen/common/string.c	Sat Nov 24 22:19:03 2007 +0000
     1.2 +++ b/xen/common/string.c	Sat Nov 24 22:33:38 2007 +0000
     1.3 @@ -294,30 +294,6 @@ void * memset(void * s,int c,size_t coun
     1.4  }
     1.5  #endif
     1.6  
     1.7 -#ifndef __HAVE_ARCH_BCOPY
     1.8 -/**
     1.9 - * bcopy - Copy one area of memory to another
    1.10 - * @src: Where to copy from
    1.11 - * @dest: Where to copy to
    1.12 - * @count: The size of the area.
    1.13 - *
    1.14 - * Note that this is the same as memcpy(), with the arguments reversed.
    1.15 - * memcpy() is the standard, bcopy() is a legacy BSD function.
    1.16 - *
    1.17 - * You should not use this function to access IO space, use memcpy_toio()
    1.18 - * or memcpy_fromio() instead.
    1.19 - */
    1.20 -char * bcopy(const char * src, char * dest, int count)
    1.21 -{
    1.22 -	char *tmp = dest;
    1.23 -
    1.24 -	while (count--)
    1.25 -		*tmp++ = *src++;
    1.26 -
    1.27 -	return dest;
    1.28 -}
    1.29 -#endif
    1.30 -
    1.31  #ifndef __HAVE_ARCH_MEMCPY
    1.32  /**
    1.33   * memcpy - Copy one area of memory to another
     2.1 --- a/xen/include/asm-powerpc/powerpc64/string.h	Sat Nov 24 22:19:03 2007 +0000
     2.2 +++ b/xen/include/asm-powerpc/powerpc64/string.h	Sat Nov 24 22:33:38 2007 +0000
     2.3 @@ -18,7 +18,6 @@
     2.4  #define __HAVE_ARCH_STRCMP
     2.5  #define __HAVE_ARCH_STRCAT
     2.6  #define __HAVE_ARCH_MEMSET
     2.7 -#define __HAVE_ARCH_BCOPY
     2.8  #define __HAVE_ARCH_MEMCPY
     2.9  #define __HAVE_ARCH_MEMMOVE
    2.10  #define __HAVE_ARCH_MEMCMP