net: use SYSCALL_DEFINEx for sys_recv
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- net/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/socket.c +2 -2
@@ -1879,8 +1879,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 ); }
Signature · 1 line
1.7.9.5
David Miller
maintainerNetworking patches should be sent to [email protected] so that they are properly queued up in patchwork.
Thank you.