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


Groups > linux.kernel > #1586544

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

From "Dmitry V. Levin" <ldv@altlinux.org>
Newsgroups linux.kernel
Subject [PING] [PATCH] uapi: fix linux/mqueue.h userspace compilation errors
Date 2017-02-23 00:20 +0100
Message-ID <tdOmt-HE-15@gated-at.bofh.it> (permalink)
References <tbe3M-4vL-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

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


Thread

[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

csiph-web