]> git.karo-electronics.de Git - karo-tx-linux.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)
committerHelge Deller <deller@gmx.de>
Sun, 8 Nov 2015 19:27:01 +0000 (20:27 +0100)
commitd0cf62fb63f760e98244d31396b3b58f3a1e326b
tree8e8b2587b5b0e5f1e1206fba61144f75fa046934
parent338f169a456a42905b81ac90fc9d7c00ca4dbde4
parisc: Fixes and cleanups in kernel uapi header files

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.

Cc: <stable@vger.kernel.org> # 3.18+
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
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