On Thu, Mar 2, 2017 at 1:22 AM, Dmitry V. Levin <ldv@xxxxxxxxxxxx> wrote: > Include <asm/ipcbuf.h> to fix asm/shmbuf.h userspace compilation errors > like this: > > /usr/include/asm-generic/shmbuf.h:26:20: error: field 'shm_perm' has incomplete type > struct ipc64_perm shm_perm; /* operation perms */ > /usr/include/asm-generic/shmbuf.h:28:2: error: unknown type name '__kernel_time_t' > __kernel_time_t shm_atime; /* last attach time */ > /usr/include/asm-generic/shmbuf.h:32:2: error: unknown type name '__kernel_time_t' > __kernel_time_t shm_dtime; /* last detach time */ > /usr/include/asm-generic/shmbuf.h:36:2: error: unknown type name '__kernel_time_t' > __kernel_time_t shm_ctime; /* last change time */ > /usr/include/asm-generic/shmbuf.h:40:2: error: unknown type name '__kernel_pid_t' > __kernel_pid_t shm_cpid; /* pid of creator */ > /usr/include/asm-generic/shmbuf.h:41:2: error: unknown type name '__kernel_pid_t' > __kernel_pid_t shm_lpid; /* pid of last operator */ > /usr/include/asm-generic/shmbuf.h:42:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t shm_nattch; /* no. of current attaches */ > /usr/include/asm-generic/shmbuf.h:43:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t __unused4; > /usr/include/asm-generic/shmbuf.h:44:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t __unused5; > /usr/include/asm-generic/shmbuf.h:48:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t shmmax; > /usr/include/asm-generic/shmbuf.h:49:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t shmmin; > /usr/include/asm-generic/shmbuf.h:50:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t shmmni; > /usr/include/asm-generic/shmbuf.h:51:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t shmseg; > /usr/include/asm-generic/shmbuf.h:52:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t shmall; > /usr/include/asm-generic/shmbuf.h:53:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t __unused1; > /usr/include/asm-generic/shmbuf.h:54:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t __unused2; > /usr/include/asm-generic/shmbuf.h:55:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t __unused3; > /usr/include/asm-generic/shmbuf.h:56:2: error: unknown type name '__kernel_ulong_t' > __kernel_ulong_t __unused4; > > Signed-off-by: Dmitry V. Levin <ldv@xxxxxxxxxxxx> > --- Acked-by: Arnd Bergmann <arnd@xxxxxxxx>