Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arch: ipcbuf.h: make uapi asm/ipcbuf.h self-contained

Userspace cannot compile <asm/ipcbuf.h> due to some missing type
definitions. For example, building it for x86 fails as follows:

CC usr/include/asm/ipcbuf.h.s
In file included from usr/include/asm/ipcbuf.h:1:0,
from <command-line>:32:
usr/include/asm-generic/ipcbuf.h:21:2: error: unknown type name `__kernel_key_t'
__kernel_key_t key;
^~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:22:2: error: unknown type name `__kernel_uid32_t'
__kernel_uid32_t uid;
^~~~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:23:2: error: unknown type name `__kernel_gid32_t'
__kernel_gid32_t gid;
^~~~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:24:2: error: unknown type name `__kernel_uid32_t'
__kernel_uid32_t cuid;
^~~~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:25:2: error: unknown type name `__kernel_gid32_t'
__kernel_gid32_t cgid;
^~~~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:26:2: error: unknown type name `__kernel_mode_t'
__kernel_mode_t mode;
^~~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:28:35: error: `__kernel_mode_t' undeclared here (not in a function)
unsigned char __pad1[4 - sizeof(__kernel_mode_t)];
^~~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:31:2: error: unknown type name `__kernel_ulong_t'
__kernel_ulong_t __unused1;
^~~~~~~~~~~~~~~~
usr/include/asm-generic/ipcbuf.h:32:2: error: unknown type name `__kernel_ulong_t'
__kernel_ulong_t __unused2;
^~~~~~~~~~~~~~~~

It is just a matter of missing include directive.

Include <linux/posix_types.h> to make it self-contained, and add it to
the compile-test coverage.

Link: http://lkml.kernel.org/r/20191030063855.9989-1-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Masahiro Yamada and committed by
Linus Torvalds
5b009673 ce5c31db

+8 -1
+2
arch/s390/include/uapi/asm/ipcbuf.h
··· 2 2 #ifndef __S390_IPCBUF_H__ 3 3 #define __S390_IPCBUF_H__ 4 4 5 + #include <linux/posix_types.h> 6 + 5 7 /* 6 8 * The user_ipc_perm structure for S/390 architecture. 7 9 * Note extra padding because this structure is passed back and forth
+2
arch/sparc/include/uapi/asm/ipcbuf.h
··· 2 2 #ifndef __SPARC_IPCBUF_H 3 3 #define __SPARC_IPCBUF_H 4 4 5 + #include <linux/posix_types.h> 6 + 5 7 /* 6 8 * The ipc64_perm structure for sparc/sparc64 architecture. 7 9 * Note extra padding because this structure is passed back and forth
+2
arch/xtensa/include/uapi/asm/ipcbuf.h
··· 12 12 #ifndef _XTENSA_IPCBUF_H 13 13 #define _XTENSA_IPCBUF_H 14 14 15 + #include <linux/posix_types.h> 16 + 15 17 /* 16 18 * Pad space is left for: 17 19 * - 32-bit mode_t and seq
+2
include/uapi/asm-generic/ipcbuf.h
··· 2 2 #ifndef __ASM_GENERIC_IPCBUF_H 3 3 #define __ASM_GENERIC_IPCBUF_H 4 4 5 + #include <linux/posix_types.h> 6 + 5 7 /* 6 8 * The generic ipc64_perm structure: 7 9 * Note extra padding because this structure is passed back and forth
-1
usr/include/Makefile
··· 16 16 # Please consider to fix the header first. 17 17 # 18 18 # Sorted alphabetically. 19 - header-test- += asm/ipcbuf.h 20 19 header-test- += asm/msgbuf.h 21 20 header-test- += asm/sembuf.h 22 21 header-test- += asm/shmbuf.h