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

From: Dmitry V. Levin
Date: Wed Feb 22 2017 - 18:11:29 EST


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@xxxxxxxxxxxx>
---
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