Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1590510

Re: [PATCH] uapi: fix asm/ipcbuf.h userspace compilation errors

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: [PATCH] uapi: fix asm/ipcbuf.h userspace compilation errors
Date 2017-03-01 18:00 +0100
Message-ID <tgfLz-5N5-3@gated-at.bofh.it> (permalink)
References <tfbK2-20f-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Feb 26, 2017 at 7:29 PM, Dmitry V. Levin <ldv@altlinux.org> wrote:
> Include <linux/posix_types.h> to fix asm/ipcbuf.h userspace compilation
> errors like this:
>
> /usr/include/asm-generic/ipcbuf.h:20:2: error: unknown type name '__kernel_key_t'
>   __kernel_key_t  key;
> /usr/include/asm-generic/ipcbuf.h:21:2: error: unknown type name '__kernel_uid32_t'
>   __kernel_uid32_t uid;
> /usr/include/asm-generic/ipcbuf.h:22:2: error: unknown type name '__kernel_gid32_t'
>   __kernel_gid32_t gid;
> /usr/include/asm-generic/ipcbuf.h:23:2: error: unknown type name '__kernel_uid32_t'
>   __kernel_uid32_t cuid;
> /usr/include/asm-generic/ipcbuf.h:24:2: error: unknown type name '__kernel_gid32_t'
>   __kernel_gid32_t cgid;
> /usr/include/asm-generic/ipcbuf.h:25:2: error: unknown type name '__kernel_mode_t'
>   __kernel_mode_t  mode;
> /usr/include/asm-generic/ipcbuf.h:27: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:30:2: error: unknown type name '__kernel_ulong_t'
>   __kernel_ulong_t __unused1;
> /usr/include/asm-generic/ipcbuf.h:31:2: error: unknown type name '__kernel_ulong_t'
>   __kernel_ulong_t __unused2;
>
> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
> ---
>  include/uapi/asm-generic/ipcbuf.h     | 2 ++
>  arch/s390/include/uapi/asm/ipcbuf.h   | 2 ++
>  arch/sparc/include/uapi/asm/ipcbuf.h  | 2 ++
>  arch/xtensa/include/uapi/asm/ipcbuf.h | 2 ++
>  4 files changed, 8 insertions(+)
>
> diff --git a/include/uapi/asm-generic/ipcbuf.h b/include/uapi/asm-generic/ipcbuf.h
> index 3dbcc1e..909f825 100644
> --- a/include/uapi/asm-generic/ipcbuf.h
> +++ b/include/uapi/asm-generic/ipcbuf.h
> @@ -1,6 +1,8 @@
>  #ifndef __ASM_GENERIC_IPCBUF_H
>  #define __ASM_GENERIC_IPCBUF_H
>
> +#include <linux/posix_types.h>
> +


Acked-by: Arnd Bergmann <arnd@arndb.de>

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH] uapi: fix asm/ipcbuf.h userspace compilation errors Arnd Bergmann <arnd@arndb.de> - 2017-03-01 18:00 +0100
  [PATCH 1/3] uapi: fix asm/msgbuf.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-02 01:30 +0100
  [PATCH 2/3] uapi: fix asm/sembuf.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-02 01:30 +0100
  [PATCH 3/3] uapi: fix asm/shmbuf.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-03-02 01:30 +0100
    Re: [PATCH 3/3] uapi: fix asm/shmbuf.h userspace compilation errors Arnd Bergmann <arnd@arndb.de> - 2017-03-02 14:20 +0100

csiph-web