Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7c0ddf5 authored by Jan Glauber's avatar Jan Glauber Committed by David S. Miller
Browse files

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: default avatarJan Glauber <jan.glauber@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c3206e6f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}