diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-12-28 02:14:20 +0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-01-21 02:44:50 +0400 |
commit | 443d5670f77aab121cb95f45da60f0aad390bcb5 (patch) | |
tree | b179fd527881e44fa8fcba5bea5f7da5234ac702 | |
parent | 071ed2456f79722d0a54f51717e66aacbc7a5d26 (diff) | |
download | linux-443d5670f77aab121cb95f45da60f0aad390bcb5.tar.xz |
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>
-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 22d95c6854e0..a70375526578 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 */ |