Re: [PATCHv4 3/6] byteorder: add get/put endian helpers for the aligned case

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

 



On Fri, 2008-05-30 at 15:05 -0400, Alan Stern wrote:
> On Thu, 29 May 2008, Harvey Harrison wrote:
> 
> > Add a set of endian helpers for the pattern:
> > *(__le16 *)ptr = cpu_to_le16(val);
> > 
> > put_le16(val, (__le16 *)ptr);
> > 
> > The argument order follows that of the get/put_unaligned_{endian}
> > helpers.
> > 
> > The get_ helpers are exactly equivalent to the existing {endian}_to_cpup
> > functions, but have been added anyway for symmetry in the apis.
> > 
> > Myrinet had a put_be32 helper that has been changed to myri_put_be32 to
> > avoid namespace collisions.
> > 
> > Private helpers in the usb-gadget drivers have been removed and switched
> > over to the common ones.  Note that the put helpers here had the args in
> > the opposite order from the common version.
> 

Sorry about that, it completely went out of my head that the usb-helper 
was ok for unaligned access...I do know better.

I'll send a patch that move the unaligned ones over to the unaligned
access api and the aligned cases to be32_to_cpup and resend shortly.

Harvey


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

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux