trivial ipmr pim_protocol compile fix
Subsystems (3)
PATCH 1/1 trivial ipmr pim_protocol compile fix
pim_protocol is defined but never used if !CONFIG_IP_PIMSM_V2
CC net/ipv4/ipmr.onet/ipv4/ipmr.c:112: warning: `pim_protocol' defined but not used
I hate adding more ifdefs to this file, but here goes the simplest fix.
===== net/ipv4/ipmr.c 1.37 vs edited =====
net/ipv4/ipmr.c +2 -0
@@ -109,7 +109,9 @@static int ipmr_cache_report (struct sk_buff *pkt,vifi_t vifi,int assert);static int ipmr_fill_mroute (struct sk_buff *skb,struct mfc_cache *c,struct rtmsg *rtm); +#ifdef CONFIG_IP_PIMSM_V2 static struct inet_protocol pim_protocol; +#endif static struct timer_list ipmr_expire_timer;