Skip to content

Commit

Permalink
net: use SYSCALL_DEFINEx for sys_recv
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
el8 authored and davem330 committed Apr 16, 2014
1 parent c3206e6 commit b7c0ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,8 @@ SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size,
* 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);
}
Expand Down

0 comments on commit b7c0ddf

Please sign in to comment.