diff mbox series

[net-next] xfrm: Make function xfrmi_get_link_net() static

Message ID 1532760588-31129-1-git-send-email-weiyongjun1@huawei.com
State Awaiting Upstream, archived
Delegated to: David Miller
Headers show
Series [net-next] xfrm: Make function xfrmi_get_link_net() static | expand

Commit Message

Wei Yongjun July 28, 2018, 6:49 a.m. UTC
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>
---
 net/xfrm/xfrm_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steffen Klassert Aug. 1, 2018, 5:22 a.m. UTC | #1
On Sat, Jul 28, 2018 at 06:49:48AM +0000, Wei Yongjun wrote:
> 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>

Applied, thanks Wei!
diff mbox series

Patch

diff --git a/net/xfrm/xfrm_interface.c b/net/xfrm/xfrm_interface.c
index 31acc6f..2c0a5c5 100644
--- a/net/xfrm/xfrm_interface.c
+++ b/net/xfrm/xfrm_interface.c
@@ -742,7 +742,7 @@  static int xfrmi_fill_info(struct sk_buff *skb, const struct net_device *dev)
 	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);