All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Glauber <jan.glauber@gmail.com>
To: netdev@vger.kernel.org
Cc: Jan Glauber <jan.glauber@gmail.com>
Subject: [PATCH] net: use SYSCALL_DEFINEx for sys_recv
Date: Wed, 16 Apr 2014 09:32:48 +0200	[thread overview]
Message-ID: <1397633568-26464-1-git-send-email-jan.glauber@gmail.com> (raw)

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>
---
 net/socket.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/socket.c b/net/socket.c
index a19ae19..d258945 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -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);
 }
-- 
1.7.9.5

             reply	other threads:[~2014-04-16  7:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16  7:32 Jan Glauber [this message]
2014-04-16 19:15 ` [PATCH] net: use SYSCALL_DEFINEx for sys_recv David Miller
  -- strict thread matches above, loose matches on Subject: below --
2014-04-15 13:50 Jan Glauber
2014-04-15 17:43 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1397633568-26464-1-git-send-email-jan.glauber@gmail.com \
    --to=jan.glauber@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.