[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170215200405.GB1028@altlinux.org>
Date: Wed, 15 Feb 2017 23:04:05 +0300
From: "Dmitry V. Levin" <ldv@...linux.org>
To: "H. J. Lu" <hjl.tools@...il.com>, "H. Peter Anvin" <hpa@...or.com>,
Alexey Dobriyan <adobriyan@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] uapi: fix linux/mqueue.h userspace compilation errors
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@...linux.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
Powered by blists - more mailing lists