Skip to content

Commit b87bac1

Browse files
Wei Yongjundavem330
authored andcommitted
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: 6e2059b ("ipv4/igmp: init group mode as INCLUDE when join source group") Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9aee400 commit b87bac1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/ipv4/igmp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,8 @@ static void ip_mc_hash_remove(struct in_device *in_dev,
13871387
/*
13881388
* A socket has joined a multicast group on device dev.
13891389
*/
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)
13911392
{
13921393
struct ip_mc_list *im;
13931394
#ifdef CONFIG_IP_MULTICAST

0 commit comments

Comments
 (0)