x86, vdso: Use <tools/le_byteshift.h> for littleendian access
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 6 Jun 2014 21:30:37 +0000 (14:30 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 6 Jun 2014 21:54:54 +0000 (14:54 -0700)
commitbdfb9bcc25005d06a9c301830bdeb7ca5a0b6ef7
tree4598169d540d42653e4dbd320473cb3ea1f6592c
parenta0abcf2e8f8017051830f738ac1bf5ef42703243
x86, vdso: Use <tools/le_byteshift.h> for littleendian access

There are no standard functions for littleendian data (unlike
bigendian data.)  Thus, use <tools/le_byteshift.h> to access
littleendian data members.  Those are fairly inefficient, but it
doesn't matter for this purpose (and can be optimized later.)  This
avoids portability problems.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Tested-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/20140606140017.afb7f91142f66cb3dd13c186@linux-foundation.org
arch/x86/vdso/Makefile
arch/x86/vdso/vdso2c.c
arch/x86/vdso/vdso2c.h