lkml.org 
[lkml]   [2009]   [Jan]   [7]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 07 Jan 2009 00:12:21 -0500 (EST)
FromNicolas Pitre <>
SubjectRe: powerpc: introduce asm/swab.h
On Tue, 6 Jan 2009, Linus Torvalds wrote:

> 
> 
> On Tue, 6 Jan 2009, Nicolas Pitre wrote:
> > 
> > Well, this series breaks ARM as well:
> 
> Ahh. I think it's the __SWAB_64_THRU_32__ case that is broken. 
> 
> Does this fix things? Totally untested. Of course.

Yep.


> 
> 		Linus
> ---
>  include/linux/swab.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/swab.h b/include/linux/swab.h
> index 9a2d33e..be5284d 100644
> --- a/include/linux/swab.h
> +++ b/include/linux/swab.h
> @@ -68,7 +68,7 @@ static inline __attribute_const__ __u64 __fswab64(__u64 val)
>  #elif defined(__SWAB_64_THRU_32__)
>  	__u32 h = val >> 32;
>  	__u32 l = val & ((1ULL << 32) - 1);
> -	return (((__u64)___swab32(l)) << 32) | ((__u64)(___swab32(h)));
> +	return (((__u64)__fswab32(l)) << 32) | ((__u64)(__fswab32(h)));
>  #else
>  	return ___constant_swab64(val);
>  #endif
> 


\
 
 \ /
  Last update: 2009-01-07 06:15    [from the cache]
©2003-2008