All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static
@ 2018-07-28  6:49 ` Wei Yongjun
  0 siblings, 0 replies; 4+ messages in thread
From: Wei Yongjun @ 2018-07-28  6:49 UTC (permalink / raw)
  To: Steffen Klassert, Lorenzo Colitti, Benedict Wong
  Cc: Wei Yongjun, netdev, kernel-janitors

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(-)

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);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static
@ 2018-07-28  6:49 ` Wei Yongjun
  0 siblings, 0 replies; 4+ messages in thread
From: Wei Yongjun @ 2018-07-28  6:49 UTC (permalink / raw)
  To: Steffen Klassert, Lorenzo Colitti, Benedict Wong
  Cc: Wei Yongjun, netdev, kernel-janitors

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(-)

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);


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static
  2018-07-28  6:49 ` Wei Yongjun
@ 2018-08-01  5:22   ` Steffen Klassert
  -1 siblings, 0 replies; 4+ messages in thread
From: Steffen Klassert @ 2018-08-01  5:22 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: Lorenzo Colitti, Benedict Wong, netdev, kernel-janitors

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!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static
@ 2018-08-01  5:22   ` Steffen Klassert
  0 siblings, 0 replies; 4+ messages in thread
From: Steffen Klassert @ 2018-08-01  5:22 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: Lorenzo Colitti, Benedict Wong, netdev, kernel-janitors

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!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-01  7:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-28  6:49 [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static Wei Yongjun
2018-07-28  6:49 ` Wei Yongjun
2018-08-01  5:22 ` Steffen Klassert
2018-08-01  5:22   ` Steffen Klassert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.