* [PATCH] uapi: fix linux/mqueue.h userspace compilation errors
@ 2017-02-15 20:04 Dmitry V. Levin
2017-02-22 23:11 ` [PING] " Dmitry V. Levin
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2017-02-15 20:04 UTC (permalink / raw)
To: H. J. Lu, H. Peter Anvin, Alexey Dobriyan; +Cc: linux-kernel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PING] [PATCH] uapi: fix linux/mqueue.h userspace compilation errors
2017-02-15 20:04 [PATCH] uapi: fix linux/mqueue.h userspace compilation errors Dmitry V. Levin
@ 2017-02-22 23:11 ` Dmitry V. Levin
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2017-02-22 23:11 UTC (permalink / raw)
To: H. J. Lu, H. Peter Anvin, Alexey Dobriyan; +Cc: linux-kernel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-22 23:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 20:04 [PATCH] uapi: fix linux/mqueue.h userspace compilation errors Dmitry V. Levin
2017-02-22 23:11 ` [PING] " Dmitry V. Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).