linux/arch/m32r/include/uapi/asm
David Howells 415586c9e6 UAPI: fix endianness conditionals in M32R's asm/stat.h
In the UAPI header files, __BIG_ENDIAN and __LITTLE_ENDIAN must be
compared against __BYTE_ORDER in preprocessor conditionals where these are
exposed to userspace (that is they're not inside __KERNEL__ conditionals).

However, in the main kernel the norm is to check for
"defined(__XXX_ENDIAN)" rather than comparing against __BYTE_ORDER and
this has incorrectly leaked into the userspace headers.

The definition of struct stat64 in M32R's asm/stat.h is wrong in this way.
 Note that userspace will likely interpret the field order incorrectly as
the big-endian variant on little-endian machines - depending on header
inclusion order.

[!!!] NOTE [!!!]  This patch may adversely change the userspace API.  It might
be better to fix the ordering of st_blocks and __pad4 in struct stat64.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-03-13 15:21:49 -07:00
..
Kbuild UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
auxvec.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
bitsperlong.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
byteorder.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
errno.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
fcntl.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
ioctl.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
ioctls.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
ipcbuf.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
mman.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
msgbuf.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
param.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
poll.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
posix_types.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
ptrace.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
resource.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
sembuf.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
setup.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
shmbuf.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
sigcontext.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
siginfo.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
signal.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-12-20 18:05:28 -08:00
socket.h soreuseport: infrastructure 2013-01-23 13:44:00 -05:00
sockios.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
stat.h UAPI: fix endianness conditionals in M32R's asm/stat.h 2013-03-13 15:21:49 -07:00
statfs.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
swab.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
termbits.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
termios.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
types.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00
unistd.h UAPI: (Scripted) Disintegrate arch/m32r/include/asm 2012-12-19 16:07:18 +00:00