From: Bo YU <tsu.yubo@gmail.com>
To: davem@davemloft.net
Cc: yuzibode@126.com, Bo YU <tsu.yubo@gmail.com>, netdev@vger.kernel.org
Subject: [PATCH 1/2] net: add an identifier name for 'struct sock *'
Date: Mon, 29 Oct 2018 23:42:09 -0400 [thread overview]
Message-ID: <e71ca1167e90b50d11c4024e6bbd30c18c9e826b.1540868768.git.tsu.yubo@gmail.com> (raw)
In-Reply-To: <cover.1540868768.git.tsu.yubo@gmail.com>
In-Reply-To: <cover.1540868768.git.tsu.yubo@gmail.com>
Fix a warning from checkpatch:
function definition argument 'struct sock *' should also have an
identifier name in include/net/af_unix.h.
Signed-off-by: Bo YU <tsu.yubo@gmail.com>
---
include/net/af_unix.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index e2695c4bf358..d53aea859a76 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -13,7 +13,7 @@ void unix_notinflight(struct user_struct *user, struct file *fp);
void unix_gc(void);
void wait_for_unix_gc(void);
struct sock *unix_get_socket(struct file *filp);
-struct sock *unix_peer_get(struct sock *);
+struct sock *unix_peer_get(struct sock *sk);
#define UNIX_HASH_SIZE 256
#define UNIX_HASH_BITS 8
--
2.11.0
next prev parent reply other threads:[~2018-10-30 12:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-30 3:34 [PATCH 0/2] net: fix warnings in include/net/af_unix.h Bo YU
2018-10-30 3:42 ` Bo YU [this message]
2018-10-31 19:37 ` [PATCH 1/2] net: add an identifier name for 'struct sock *' David Miller
2018-10-30 3:42 ` [PATCH 2/2] net: drop a space before tabs Bo YU
2018-10-31 19:38 ` 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=e71ca1167e90b50d11c4024e6bbd30c18c9e826b.1540868768.git.tsu.yubo@gmail.com \
--to=tsu.yubo@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=yuzibode@126.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).