diff options
author | Eric Dumazet <edumazet@google.com> | 2012-09-11 21:47:51 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-13 16:52:55 -0400 |
commit | fb0af4c74f200e3c4846d91d8f2f8b265450bba7 (patch) | |
tree | 78835d5694bd885ea79811ba2025c19ea6a93d9a | |
parent | 91b4b04ff85de9086c959138d747d2808cc83a46 (diff) | |
download | linux-3.10-fb0af4c74f200e3c4846d91d8f2f8b265450bba7.tar.gz linux-3.10-fb0af4c74f200e3c4846d91d8f2f8b265450bba7.tar.bz2 linux-3.10-fb0af4c74f200e3c4846d91d8f2f8b265450bba7.zip |
ipv6: route templates can be const
We kmemdup() templates, so they can be const.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 399613b7972..f568ac69798 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -222,7 +222,7 @@ static const u32 ip6_template_metrics[RTAX_MAX] = { [RTAX_HOPLIMIT - 1] = 255, }; -static struct rt6_info ip6_null_entry_template = { +static const struct rt6_info ip6_null_entry_template = { .dst = { .__refcnt = ATOMIC_INIT(1), .__use = 1, @@ -242,7 +242,7 @@ static struct rt6_info ip6_null_entry_template = { static int ip6_pkt_prohibit(struct sk_buff *skb); static int ip6_pkt_prohibit_out(struct sk_buff *skb); -static struct rt6_info ip6_prohibit_entry_template = { +static const struct rt6_info ip6_prohibit_entry_template = { .dst = { .__refcnt = ATOMIC_INIT(1), .__use = 1, @@ -257,7 +257,7 @@ static struct rt6_info ip6_prohibit_entry_template = { .rt6i_ref = ATOMIC_INIT(1), }; -static struct rt6_info ip6_blk_hole_entry_template = { +static const struct rt6_info ip6_blk_hole_entry_template = { .dst = { .__refcnt = ATOMIC_INIT(1), .__use = 1, |