From: "Dmitry V. Levin" <ldv@altlinux.org>
To: "H. J. Lu" <hjl.tools@gmail.com>,
"H. Peter Anvin" <hpa@zytor.com>,
Alexey Dobriyan <adobriyan@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] uapi: fix linux/mqueue.h userspace compilation errors
Date: Wed, 15 Feb 2017 23:04:05 +0300 [thread overview]
Message-ID: <20170215200405.GB1028@altlinux.org> (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
next reply other threads:[~2017-02-15 20:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 20:04 Dmitry V. Levin [this message]
2017-02-22 23:11 ` [PING] [PATCH] uapi: fix linux/mqueue.h userspace compilation errors Dmitry V. Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170215200405.GB1028@altlinux.org \
--to=ldv@altlinux.org \
--cc=adobriyan@gmail.com \
--cc=hjl.tools@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox