]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tools/include: Add byteshift headers for endian access
authorMatt Fleming <matt.fleming@intel.com>
Tue, 28 Feb 2012 13:37:20 +0000 (13:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:53:34 +0000 (08:53 -0700)
commit65907d483ca9f9d92eb22eb40d7b5f0cdbe7d235
tree10a0d2efa86b581da07ce920aeb7e59a7120b29f
parent1b4071cc8b463c7e98652d28e8a7535b7602c481
tools/include: Add byteshift headers for endian access

commit a07f7672d7cf0ff0d6e548a9feb6e0bd016d9c6c upstream.

There are various hostprogs in the kernel that are rolling their own
implementations of {get,put}_unaligned_le*(). Copy the byteshift
headers from include/linux/unaligned so that they can all use a single
implementation.

This requires changing some of the data types to the userspace
exported ones (u32 -> __u32, etc).

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Link: http://lkml.kernel.org/r/1330436245-24875-2-git-send-email-matt@console-pimps.org
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/include/tools/be_byteshift.h [new file with mode: 0644]
tools/include/tools/le_byteshift.h [new file with mode: 0644]