OSDN Git Service

uapi: Use __kernel_long_t in struct mq_attr
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 27 Dec 2013 22:14:24 +0000 (14:14 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 20 Jan 2014 22:45:33 +0000 (14:45 -0800)
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>
include/uapi/linux/mqueue.h

index 8b5a796..d0a2b8e 100644 (file)
 #define MQ_BYTES_MAX   819200
 
 struct mq_attr {
-       long    mq_flags;       /* message queue flags                  */
-       long    mq_maxmsg;      /* maximum number of messages           */
-       long    mq_msgsize;     /* maximum message size                 */
-       long    mq_curmsgs;     /* number of messages currently queued  */
-       long    __reserved[4];  /* ignored for input, zeroed for output */
+       __kernel_long_t mq_flags;       /* message queue flags                  */
+       __kernel_long_t mq_maxmsg;      /* maximum number of messages           */
+       __kernel_long_t mq_msgsize;     /* maximum message size                 */
+       __kernel_long_t mq_curmsgs;     /* number of messages currently queued  */
+       __kernel_long_t __reserved[4];  /* ignored for input, zeroed for output */
 };
 
 /*