From: Jan Glauber Date: Wed, 16 Apr 2014 07:32:48 +0000 (+0200) Subject: net: use SYSCALL_DEFINEx for sys_recv X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7c0ddf5f270b2a3c0af326cb300eb17175d58e3;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- diff --git a/net/socket.c b/net/socket.c index 1b1e7e6a960f..abf56b2a14f9 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); }