mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
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 <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]>
This commit is contained in:
1 parent
f8dcdf0130
commit
63159f5dcc
1 file changed
+5
-5
@@ -23,11 +23,11 @@
|
||||
#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 */
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user