Re: [PATCH 1/3] sparc32: Remove non-kernel code from memcpy implementation.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 19, 2011 at 06:44:15PM -0400, David Miller wrote:
> 
> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
> ---
>  arch/sparc/lib/memcpy.S |  607 +----------------------------------------------
>  1 files changed, 2 insertions(+), 605 deletions(-)
> 
> diff --git a/arch/sparc/lib/memcpy.S b/arch/sparc/lib/memcpy.S
> index 34fe657..6a8ef5d 100644
> --- a/arch/sparc/lib/memcpy.S
> +++ b/arch/sparc/lib/memcpy.S
> @@ -7,17 +7,12 @@
>   * Copyright (C) 1996 Jakub Jelinek (jj@xxxxxxxxxxxxxxxxxxx)
>   */
>  
> -#ifdef __KERNEL__
> -
> -#define FUNC(x) 											\
> +#define FUNC(x) 		\
>  	.globl	x;		\
>  	.type	x,@function;	\
> -	.align	4;											\
> +	.align	4;		\
>  x:

The kernel way is to use:

#include <linux/linkage.h>

...

ENTRY(memcpy)

I do not see this widely used in sparc32 code - added to my todo list.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux