Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
David S. Miller
b87bac10 9aee4000

+2 -1
+2 -1
net/ipv4/igmp.c
··· 1387 1387 /* 1388 1388 * A socket has joined a multicast group on device dev. 1389 1389 */ 1390 - void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, unsigned int mode) 1390 + static void __ip_mc_inc_group(struct in_device *in_dev, __be32 addr, 1391 + unsigned int mode) 1391 1392 { 1392 1393 struct ip_mc_list *im; 1393 1394 #ifdef CONFIG_IP_MULTICAST