Skip to contentSkip to conversation

trivial ipmr pim_protocol compile fix

PATCH New Chris Wright 1 participant 1 message Mar 12, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.o
net/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;