android_kernel_samsung_univ.../arch/parisc/include/uapi/asm
Helge Deller bde741e9cc parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header
commit 2ad5d52d42810bed95100a3d912679d8864421ec upstream.

In swab.h the "#if BITS_PER_LONG > 32" breaks compiling userspace programs if
BITS_PER_LONG is #defined by userspace with the sizeof() compiler builtin.

Solve this problem by using __BITS_PER_LONG instead.  Since we now
#include asm/bitsperlong.h avoid further potential userspace pollution
by moving the #define of SHIFT_PER_LONG to bitops.h which is not
exported to userspace.

This patch unbreaks compiling qemu on hppa/parisc.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-02-01 08:30:53 +01:00
..
bitsperlong.h parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header 2017-02-01 08:30:53 +01:00
byteorder.h
errno.h parisc: Fix order of EREFUSED define in errno.h 2016-09-07 08:32:36 +02:00
fcntl.h
ioctl.h
ioctls.h parisc/uapi: Add definition of TIOC[SG]RS485 2014-09-09 22:36:40 -07:00
ipcbuf.h parisc: Fixes and cleanups in kernel uapi header files 2015-11-08 20:27:01 +01:00
Kbuild parisc: Use generic uapi/asm/resource.h file 2014-05-01 19:29:26 +02:00
mman.h Merge branch 'parisc-4.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2015-11-22 12:50:58 -08:00
msgbuf.h parisc: Fixes and cleanups in kernel uapi header files 2015-11-08 20:27:01 +01:00
pdc.h
posix_types.h parisc: Fixes and cleanups in kernel uapi header files 2015-11-08 20:27:01 +01:00
ptrace.h
sembuf.h parisc: Fixes and cleanups in kernel uapi header files 2015-11-08 20:27:01 +01:00
setup.h
shmbuf.h parisc: Fixes and cleanups in kernel uapi header files 2015-11-08 20:27:01 +01:00
sigcontext.h
siginfo.h parisc: Fix __ARCH_SI_PREAMBLE_SIZE 2016-02-17 12:30:57 -08:00
signal.h parisc: Avoid using CONFIG_64BIT in userspace exported headers 2014-11-10 22:25:29 +01:00
socket.h net: sock: allow eBPF programs to be attached to sockets 2014-12-05 21:47:32 -08:00
sockios.h
stat.h parisc: Drop hpux_stat64 struct from stat.h header file 2015-11-08 20:26:24 +01:00
statfs.h
swab.h parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header 2017-02-01 08:30:53 +01:00
termbits.h
termios.h
types.h
unistd.h parisc: Wire up mlock2 syscall 2015-12-12 16:07:44 +01:00