summaryrefslogtreecommitdiff
path: root/net/ipv4/igmp.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-07-25 09:06:13 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-26 02:36:57 +0300
commitb87bac1012c483462e7776c7b7320b659dbb3295 (patch)
tree69425089bf7ec1fb084de1bf7f03c5ffc2711d97 /net/ipv4/igmp.c
parent9aee40006190a3cda9a4d2dbae71e92617c8c362 (diff)
downloadlinux-b87bac1012c483462e7776c7b7320b659dbb3295.tar.xz
net: igmp: make function __ip_mc_inc_group() static
Fixes the following sparse warnings: net/ipv4/igmp.c:1391:6: warning: symbol '__ip_mc_inc_group' was not declared. Should it be static? Fixes: 6e2059b53f98 ("ipv4/igmp: init group mode as INCLUDE when join source group") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/igmp.c')
-rw-r--r--net/ipv4/igmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 28fef7d15959..75151be21413 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -1387,7 +1387,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