diff options
author | Jan Glauber <jan.glauber@gmail.com> | 2014-04-16 09:32:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-16 15:15:05 -0400 |
commit | b7c0ddf5f270b2a3c0af326cb300eb17175d58e3 (patch) | |
tree | 215dbf6d97da947d7d507a87401ba7730c4875e0 | |
parent | c3206e6fc0e1459c56a42e0eb5a3f559e6ca43f1 (diff) |
net: use SYSCALL_DEFINEx for sys_recv
Make sys_recv a first class citizen by using the SYSCALL_DEFINEx
macro. Besides being cleaner this will also generate meta data
for the system call so tracing tools like ftrace or LTTng can
resolve this system call.
Signed-off-by: Jan Glauber <jan.glauber@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket.c b/net/socket.c index 1b1e7e6a960..abf56b2a14f 100644 --- a/net/socket.c +++ b/net/socket.c @@ -1880,8 +1880,8 @@ out: * Receive a datagram from a socket. */ -asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size, - unsigned int flags) +SYSCALL_DEFINE4(recv, int, fd, void __user *, ubuf, size_t, size, + unsigned int, flags) { return sys_recvfrom(fd, ubuf, size, flags, NULL, NULL); } |