From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Yongjun Subject: [PATCH net-next] net: igmp: make function __ip_mc_inc_group() static Date: Wed, 25 Jul 2018 06:06:13 +0000 Message-ID: <1532498773-188363-1-git-send-email-weiyongjun1@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Wei Yongjun , , To: Alexey Kuznetsov , Hideaki YOSHIFUJI , Hangbin Liu Return-path: Received: from szxga07-in.huawei.com ([45.249.212.35]:39836 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728338AbeGYHIS (ORCPT ); Wed, 25 Jul 2018 03:08:18 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Fixes the following sparse warnings: net/ipv4/igmp.c:1391:6: warning: symbol '__ip_mc_inc_group' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- net/ipv4/igmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 598333b..c9f8d46 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -1388,7 +1388,8 @@ static void ip_mc_hash_remove(struct in_device *in_dev, /* * A socket has joined a multicast group on device dev. */ -void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, unsigned int mode) +static void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, + unsigned int mode) { struct ip_mc_list *im; #ifdef CONFIG_IP_MULTICAST