Skip to content

Commit 63159f5

Browse files
hjl-toolsH. Peter Anvin
authored andcommitted
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>
1 parent f8dcdf0 commit 63159f5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎include/uapi/linux/mqueue.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#define MQ_BYTES_MAX 819200
2424

2525
struct mq_attr {
26-
long mq_flags; /* message queue flags */
27-
long mq_maxmsg; /* maximum number of messages */
28-
long mq_msgsize; /* maximum message size */
29-
long mq_curmsgs; /* number of messages currently queued */
30-
long __reserved[4]; /* ignored for input, zeroed for output */
26+
__kernel_long_t mq_flags; /* message queue flags */
27+
__kernel_long_t mq_maxmsg; /* maximum number of messages */
28+
__kernel_long_t mq_msgsize; /* maximum message size */
29+
__kernel_long_t mq_curmsgs; /* number of messages currently queued */
30+
__kernel_long_t __reserved[4]; /* ignored for input, zeroed for output */
3131
};
3232

3333
/*

0 commit comments

Comments
 (0)