Commit b9cd5ca2 authored by H.J. Lu's avatar H.J. Lu Committed by H. Peter Anvin

uapi: Use __kernel_ulong_t in struct msqid64_ds

Both x32 and x86-64 use the same struct msqid64_ds for system calls.
But x32 long is 32-bit. This patch replaces unsigned long with
__kernel_ulong_t in struct msqid64_ds.
Signed-off-by: default avatarH.J. Lu <hjl.tools@gmail.com>
Link: http://lkml.kernel.org/r/1388182464-28428-6-git-send-email-hjl.tools@gmail.comSigned-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 443d5670
...@@ -35,13 +35,13 @@ struct msqid64_ds { ...@@ -35,13 +35,13 @@ struct msqid64_ds {
#if __BITS_PER_LONG != 64 #if __BITS_PER_LONG != 64
unsigned long __unused3; unsigned long __unused3;
#endif #endif
unsigned long msg_cbytes; /* current number of bytes on queue */ __kernel_ulong_t msg_cbytes; /* current number of bytes on queue */
unsigned long msg_qnum; /* number of messages in queue */ __kernel_ulong_t msg_qnum; /* number of messages in queue */
unsigned long msg_qbytes; /* max number of bytes on queue */ __kernel_ulong_t msg_qbytes; /* max number of bytes on queue */
__kernel_pid_t msg_lspid; /* pid of last msgsnd */ __kernel_pid_t msg_lspid; /* pid of last msgsnd */
__kernel_pid_t msg_lrpid; /* last receive pid */ __kernel_pid_t msg_lrpid; /* last receive pid */
unsigned long __unused4; __kernel_ulong_t __unused4;
unsigned long __unused5; __kernel_ulong_t __unused5;
}; };
#endif /* __ASM_GENERIC_MSGBUF_H */ #endif /* __ASM_GENERIC_MSGBUF_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment