aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/vrf.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2019-06-24 16:01:08 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-26 13:26:08 -0700
commit9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70 (patch)
treec0c49d78a531b98f9d9c7e593591cfb46e87a493 /drivers/net/vrf.c
parentnet: dsa: microchip: Use gpiod_set_value_cansleep() (diff)
downloadlinux-dev-9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70.tar.xz
linux-dev-9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70.zip
ipv6: constify rt6_nexthop()
There is no functional change in this patch, it only prepares the next one. rt6_nexthop() will be used by ip6_dst_lookup_neigh(), which uses const variables. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Reported-by: kbuild test robot <lkp@intel.com> Acked-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vrf.c')
-rw-r--r--drivers/net/vrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index 11b9525dff27..311b0cc6eb98 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -350,8 +350,8 @@ static int vrf_finish_output6(struct net *net, struct sock *sk,
{
struct dst_entry *dst = skb_dst(skb);
struct net_device *dev = dst->dev;
+ const struct in6_addr *nexthop;
struct neighbour *neigh;
- struct in6_addr *nexthop;
int ret;
nf_reset(skb);