]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Fixes and cleanups in kernel uapi header files
authorHelge Deller <deller@gmx.de>
Fri, 6 Nov 2015 22:36:01 +0000 (23:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:28 +0000 (14:28 -0800)
commitde90adfa1a88b065cfddcb02d4333b219ac31f04
tree7f7c9a52d5fb95373d85ba22bbe3663e2e1ded72
parent2e35c886dd88c9754c92171f13d581075c166310
parisc: Fixes and cleanups in kernel uapi header files

commit d0cf62fb63f760e98244d31396b3b58f3a1e326b upstream.

This patch fixes some bugs and partly cleans up the parisc uapi header
files to what glibc defined:
- compat_semid64_ds was wrong and did not take the endianess into
  account
- ipc64_perm exported userspace types which broke building userspace
  packages on debian (e.g. trinity)
- ipc64_perm needs to use a 32bit mode_t on 64bit kernel
- msqid64_ds and semid64_ds needs unsigned longs for various struct members
- shmid64_ds exported size_t instead of __kernel_size_t

And finally add some compile-time checks for the sizes of those structs
to avoid future breakage.

Runtime-tested with the Linux Test Project (LTP) testsuite.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/compat.h
arch/parisc/include/uapi/asm/ipcbuf.h
arch/parisc/include/uapi/asm/msgbuf.h
arch/parisc/include/uapi/asm/posix_types.h
arch/parisc/include/uapi/asm/sembuf.h
arch/parisc/include/uapi/asm/shmbuf.h
arch/parisc/mm/init.c