diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-07-28 06:49:48 +0000 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2018-08-29 07:56:36 +0200 |
commit | 211d6f2dc883fe2235532d7ec4ed7e8222957ae0 (patch) | |
tree | 4afc2c8390689fd707adb07e603919aeb95211e0 /net/xfrm/xfrm_interface.c | |
parent | 817e60a7a2bb1f22052f18562990d675cb3a3762 (diff) |
xfrm: Make function xfrmi_get_link_net() static
Fixes the following sparse warning:
net/xfrm/xfrm_interface.c:745:12: warning:
symbol 'xfrmi_get_link_net' was not declared. Should it be static?
Fixes: f203b76d7809 ("xfrm: Add virtual xfrm interfaces")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_interface.c')
-rw-r--r-- | net/xfrm/xfrm_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_interface.c b/net/xfrm/xfrm_interface.c index 31acc6f33d98..2c0a5c59dcd0 100644 --- a/net/xfrm/xfrm_interface.c +++ b/net/xfrm/xfrm_interface.c @@ -742,7 +742,7 @@ nla_put_failure: return -EMSGSIZE; } -struct net *xfrmi_get_link_net(const struct net_device *dev) +static struct net *xfrmi_get_link_net(const struct net_device *dev) { struct xfrm_if *xi = netdev_priv(dev); |