summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2011-03-22 19:17:36 -0700
committerDavid S. Miller <davem@davemloft.net>2011-03-22 19:17:36 -0700
commit9c7a4f9ce651383c73dfdff3d7e21d5f9572c4ec (patch)
tree5286988a4c78be842ea164c24e1acf932d19b4a0 /net/ipv6
parentdb138908ccff404b9920f18f6244f4bff2368c04 (diff)
downloadlinux-3.10-9c7a4f9ce651383c73dfdff3d7e21d5f9572c4ec.tar.gz
linux-3.10-9c7a4f9ce651383c73dfdff3d7e21d5f9572c4ec.tar.bz2
linux-3.10-9c7a4f9ce651383c73dfdff3d7e21d5f9572c4ec.zip
ipv6: ip6_route_output does not modify sk parameter, so make it const
This avoids explicit cast to avoid 'discards qualifiers' compiler warning in a netfilter patch that i've been working on. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 6814c8722fa..843406f14d7 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -854,7 +854,7 @@ static struct rt6_info *ip6_pol_route_output(struct net *net, struct fib6_table
return ip6_pol_route(net, table, fl6->flowi6_oif, fl6, flags);
}
-struct dst_entry * ip6_route_output(struct net *net, struct sock *sk,
+struct dst_entry * ip6_route_output(struct net *net, const struct sock *sk,
struct flowi6 *fl6)
{
int flags = 0;