diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-12-27 14:14:20 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-01-20 14:44:50 -0800 |
commit | 443d5670f77aab121cb95f45da60f0aad390bcb5 (patch) | |
tree | b179fd527881e44fa8fcba5bea5f7da5234ac702 /include/uapi | |
parent | 071ed2456f79722d0a54f51717e66aacbc7a5d26 (diff) |
uapi: Use __kernel_long_t in struct msgbuf
x32 msgsnd/msgrcv system calls are the same as x86-64 msgsnd/msgrcv system
calls, which use 64-bit integer for long in struct msgbuf . But x32 long
is 32 bit. This patch replaces long in struct msgbuf with __kernel_long_t.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Link: http://lkml.kernel.org/r/1388182464-28428-5-git-send-email-hjl.tools@gmail.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/msg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/msg.h b/include/uapi/linux/msg.h index 22d95c6854e..a7037552657 100644 --- a/include/uapi/linux/msg.h +++ b/include/uapi/linux/msg.h @@ -34,8 +34,8 @@ struct msqid_ds { /* message buffer for msgsnd and msgrcv calls */ struct msgbuf { - long mtype; /* type of message */ - char mtext[1]; /* message text */ + __kernel_long_t mtype; /* type of message */ + char mtext[1]; /* message text */ }; /* buffer for msgctl calls IPC_INFO, MSG_INFO */ |