diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-12-27 17:14:24 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-01-20 17:45:33 -0500 |
commit | 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 (patch) | |
tree | 9352cb8841536b0822bbe2b2b70d2c9ee5b0f318 | |
parent | f8dcdf0130d3ba34f8f7531af7c45616efe1e32e (diff) |
uapi: Use __kernel_long_t in struct mq_attr
Both x32 and x86-64 use the same struct mq_attr for system calls. But
x32 long is 32-bit. This patch replaces long with __kernel_long_t in
struct mq_attr.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Link: http://lkml.kernel.org/r/1388182464-28428-9-git-send-email-hjl.tools@gmail.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | include/uapi/linux/mqueue.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/uapi/linux/mqueue.h b/include/uapi/linux/mqueue.h index 8b5a79615fbf..d0a2b8e89813 100644 --- a/include/uapi/linux/mqueue.h +++ b/include/uapi/linux/mqueue.h | |||
@@ -23,11 +23,11 @@ | |||
23 | #define MQ_BYTES_MAX 819200 | 23 | #define MQ_BYTES_MAX 819200 |
24 | 24 | ||
25 | struct mq_attr { | 25 | struct mq_attr { |
26 | long mq_flags; /* message queue flags */ | 26 | __kernel_long_t mq_flags; /* message queue flags */ |
27 | long mq_maxmsg; /* maximum number of messages */ | 27 | __kernel_long_t mq_maxmsg; /* maximum number of messages */ |
28 | long mq_msgsize; /* maximum message size */ | 28 | __kernel_long_t mq_msgsize; /* maximum message size */ |
29 | long mq_curmsgs; /* number of messages currently queued */ | 29 | __kernel_long_t mq_curmsgs; /* number of messages currently queued */ |
30 | long __reserved[4]; /* ignored for input, zeroed for output */ | 30 | __kernel_long_t __reserved[4]; /* ignored for input, zeroed for output */ |
31 | }; | 31 | }; |
32 | 32 | ||
33 | /* | 33 | /* |