提交 6723ab54 编写于 作者: D David S. Miller

[IPV6]: Fix route.c warnings when multiple tables are disabled.

Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6ba7511b
...@@ -94,9 +94,6 @@ static int ip6_dst_gc(void); ...@@ -94,9 +94,6 @@ static int ip6_dst_gc(void);
static int ip6_pkt_discard(struct sk_buff *skb); static int ip6_pkt_discard(struct sk_buff *skb);
static int ip6_pkt_discard_out(struct sk_buff *skb); static int ip6_pkt_discard_out(struct sk_buff *skb);
static int ip6_pkt_prohibit(struct sk_buff *skb);
static int ip6_pkt_prohibit_out(struct sk_buff *skb);
static int ip6_pkt_blk_hole(struct sk_buff *skb);
static void ip6_link_failure(struct sk_buff *skb); static void ip6_link_failure(struct sk_buff *skb);
static void ip6_rt_update_pmtu(struct dst_entry *dst, u32 mtu); static void ip6_rt_update_pmtu(struct dst_entry *dst, u32 mtu);
...@@ -144,6 +141,10 @@ struct rt6_info ip6_null_entry = { ...@@ -144,6 +141,10 @@ struct rt6_info ip6_null_entry = {
#ifdef CONFIG_IPV6_MULTIPLE_TABLES #ifdef CONFIG_IPV6_MULTIPLE_TABLES
static int ip6_pkt_prohibit(struct sk_buff *skb);
static int ip6_pkt_prohibit_out(struct sk_buff *skb);
static int ip6_pkt_blk_hole(struct sk_buff *skb);
struct rt6_info ip6_prohibit_entry = { struct rt6_info ip6_prohibit_entry = {
.u = { .u = {
.dst = { .dst = {
...@@ -1768,6 +1769,8 @@ static int ip6_pkt_discard_out(struct sk_buff *skb) ...@@ -1768,6 +1769,8 @@ static int ip6_pkt_discard_out(struct sk_buff *skb)
return ip6_pkt_discard(skb); return ip6_pkt_discard(skb);
} }
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
static int ip6_pkt_prohibit(struct sk_buff *skb) static int ip6_pkt_prohibit(struct sk_buff *skb)
{ {
return ip6_pkt_drop(skb, ICMPV6_ADM_PROHIBITED); return ip6_pkt_drop(skb, ICMPV6_ADM_PROHIBITED);
...@@ -1785,6 +1788,8 @@ static int ip6_pkt_blk_hole(struct sk_buff *skb) ...@@ -1785,6 +1788,8 @@ static int ip6_pkt_blk_hole(struct sk_buff *skb)
return 0; return 0;
} }
#endif
/* /*
* Allocate a dst for local (unicast / anycast) address. * Allocate a dst for local (unicast / anycast) address.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册