summaryrefslogtreecommitdiffstats
path: root/net/compat.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-04 17:09:57 +0100
committerHeiko Carstens <heiko.carstens@de.ibm.com>2014-03-06 16:30:45 +0100
commit3a49a0f7181c243aa04e6c5e44ca70a90ead8f9a (patch)
tree9b4609fddab00f06e9ebdb206f91c66961e38e66 /net/compat.c
parent8eee9093cdbeb2aa89d67dc1a3fd118acabaea52 (diff)
downloadop-kernel-dev-3a49a0f7181c243aa04e6c5e44ca70a90ead8f9a.zip
op-kernel-dev-3a49a0f7181c243aa04e6c5e44ca70a90ead8f9a.tar.gz
net/compat: convert to COMPAT_SYSCALL_DEFINE with changing parameter types
In order to allow the COMPAT_SYSCALL_DEFINE macro generate code that performs proper zero and sign extension convert all 64 bit parameters to their corresponding 32 bit compat counterparts. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'net/compat.c')
-rw-r--r--net/compat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/compat.c b/net/compat.c
index 706b78b..9a76eaf 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -758,14 +758,14 @@ COMPAT_SYSCALL_DEFINE3(recvmsg, int, fd, struct compat_msghdr __user *, msg, uns
return __sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT);
}
-asmlinkage long compat_sys_recv(int fd, void __user *buf, size_t len, unsigned int flags)
+COMPAT_SYSCALL_DEFINE4(recv, int, fd, void __user *, buf, compat_size_t, len, unsigned int, flags)
{
return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT);
}
-asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, size_t len,
- unsigned int flags, struct sockaddr __user *addr,
- int __user *addrlen)
+COMPAT_SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, buf, compat_size_t, len,
+ unsigned int, flags, struct sockaddr __user *, addr,
+ int __user *, addrlen)
{
return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen);
}
OpenPOWER on IntegriCloud