From db36ef6106f4d8a01a0fea757d598b549cdfe539 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Thu, 14 Feb 2019 13:38:06 +0800 Subject: [PATCH] xfrm: Make function xfrmi_get_link_net() static mainline inclusion from mainline-4.20 commit 211d6f2dc883 category: bugfix bugzilla: 6124 CVE: NA ------------------------------------------------- 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 Signed-off-by: Steffen Klassert Signed-off-by: Zhiqiang Liu Signed-off-by: Mao Wenan Reviewed-by: Wei Yongjun Signed-off-by: Yang Yingliang --- net/xfrm/xfrm_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xfrm/xfrm_interface.c b/net/xfrm/xfrm_interface.c index 6f05e831a73e..effb038c7e42 100644 --- a/net/xfrm/xfrm_interface.c +++ b/net/xfrm/xfrm_interface.c @@ -745,7 +745,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); -- GitLab