From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bo YU Subject: [PATCH 1/2] net: add an identifier name for 'struct sock *' Date: Mon, 29 Oct 2018 23:42:09 -0400 Message-ID: References: Cc: yuzibode@126.com, Bo YU , netdev@vger.kernel.org To: davem@davemloft.net Return-path: Received: from mail-pf1-f194.google.com ([209.85.210.194]:40789 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbeJ3MeU (ORCPT ); Tue, 30 Oct 2018 08:34:20 -0400 Received: by mail-pf1-f194.google.com with SMTP id g21-v6so5083772pfi.7 for ; Mon, 29 Oct 2018 20:42:38 -0700 (PDT) In-Reply-To: In-Reply-To: References: Sender: netdev-owner@vger.kernel.org List-ID: 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 --- 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