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


Groups > linux.kernel > #1581624 > unrolled thread

[PATCH] uapi: fix linux/mqueue.h userspace compilation errors

Started by"Dmitry V. Levin" <ldv@altlinux.org>
First post2017-02-15 21:10 +0100
Last post2017-02-23 00:20 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] uapi: fix linux/mqueue.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-15 21:10 +0100
    [PING] [PATCH] uapi: fix linux/mqueue.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-23 00:20 +0100

#1581624 — [PATCH] uapi: fix linux/mqueue.h userspace compilation errors

From"Dmitry V. Levin" <ldv@altlinux.org>
Date2017-02-15 21:10 +0100
Subject[PATCH] uapi: fix linux/mqueue.h userspace compilation errors
Message-ID<tbe3M-4vL-15@gated-at.bofh.it>
Include <linux/types.h> to fix the following linux/mqueue.h userspace
compilation errors:

/usr/include/linux/mqueue.h:26:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_flags; /* message queue flags   */
/usr/include/linux/mqueue.h:27:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_maxmsg; /* maximum number of messages  */
/usr/include/linux/mqueue.h:28:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_msgsize; /* maximum message size   */
/usr/include/linux/mqueue.h:29:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_curmsgs; /* number of messages currently queued */
/usr/include/linux/mqueue.h:30:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t __reserved[4]; /* ignored for input, zeroed for output */

This reverts commit 139a7bdc2b93 ("mqueue.h: don't include linux/types.h").

Fixes: 63159f5dcccb ("uapi: Use __kernel_long_t in struct mq_attr")
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 include/uapi/linux/mqueue.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/uapi/linux/mqueue.h b/include/uapi/linux/mqueue.h
index d0a2b8e..4170778 100644
--- a/include/uapi/linux/mqueue.h
+++ b/include/uapi/linux/mqueue.h
@@ -18,6 +18,8 @@
 #ifndef _LINUX_MQUEUE_H
 #define _LINUX_MQUEUE_H
 
+#include <linux/types.h>		/* For __kernel_long_t. */
+
 #define MQ_PRIO_MAX 	32768
 /* per-uid limit of kernel memory used by mqueue, in bytes */
 #define MQ_BYTES_MAX	819200
-- 
ldv

[toc] | [next] | [standalone]


#1586544 — [PING] [PATCH] uapi: fix linux/mqueue.h userspace compilation errors

From"Dmitry V. Levin" <ldv@altlinux.org>
Date2017-02-23 00:20 +0100
Subject[PING] [PATCH] uapi: fix linux/mqueue.h userspace compilation errors
Message-ID<tdOmt-HE-15@gated-at.bofh.it>
In reply to#1581624
Include <linux/types.h> to fix the following linux/mqueue.h userspace
compilation errors:

/usr/include/linux/mqueue.h:26:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_flags; /* message queue flags   */
/usr/include/linux/mqueue.h:27:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_maxmsg; /* maximum number of messages  */
/usr/include/linux/mqueue.h:28:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_msgsize; /* maximum message size   */
/usr/include/linux/mqueue.h:29:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t mq_curmsgs; /* number of messages currently queued */
/usr/include/linux/mqueue.h:30:2: error: unknown type name '__kernel_long_t'
  __kernel_long_t __reserved[4]; /* ignored for input, zeroed for output */

This reverts commit 139a7bdc2b93 ("mqueue.h: don't include linux/types.h").

Fixes: 63159f5dcccb ("uapi: Use __kernel_long_t in struct mq_attr")
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 include/uapi/linux/mqueue.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/uapi/linux/mqueue.h b/include/uapi/linux/mqueue.h
index d0a2b8e..4170778 100644
--- a/include/uapi/linux/mqueue.h
+++ b/include/uapi/linux/mqueue.h
@@ -18,6 +18,8 @@
 #ifndef _LINUX_MQUEUE_H
 #define _LINUX_MQUEUE_H
 
+#include <linux/types.h>		/* For __kernel_long_t. */
+
 #define MQ_PRIO_MAX 	32768
 /* per-uid limit of kernel memory used by mqueue, in bytes */
 #define MQ_BYTES_MAX	819200
-- 
ldv

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web