From: Wei Yongjun <weiyongjun1@huawei.com> To: Steffen Klassert <steffen.klassert@secunet.com>, Lorenzo Colitti <lorenzo@google.com>, Benedict Wong <benedictwong@google.com> Cc: Wei Yongjun <weiyongjun1@huawei.com>, <netdev@vger.kernel.org>, <kernel-janitors@vger.kernel.org> Subject: [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static Date: Sat, 28 Jul 2018 06:49:48 +0000 [thread overview] Message-ID: <1532760588-31129-1-git-send-email-weiyongjun1@huawei.com> (raw) 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);
WARNING: multiple messages have this Message-ID (diff)
From: Wei Yongjun <weiyongjun1@huawei.com> To: Steffen Klassert <steffen.klassert@secunet.com>, Lorenzo Colitti <lorenzo@google.com>, Benedict Wong <benedictwong@google.com> Cc: Wei Yongjun <weiyongjun1@huawei.com>, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static Date: Sat, 28 Jul 2018 06:49:48 +0000 [thread overview] Message-ID: <1532760588-31129-1-git-send-email-weiyongjun1@huawei.com> (raw) 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);
next reply other threads:[~2018-07-28 8:07 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-07-28 6:49 Wei Yongjun [this message] 2018-07-28 6:49 ` [PATCH net-next] xfrm: Make function xfrmi_get_link_net() static Wei Yongjun 2018-08-01 5:22 ` Steffen Klassert 2018-08-01 5:22 ` Steffen Klassert
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1532760588-31129-1-git-send-email-weiyongjun1@huawei.com \ --to=weiyongjun1@huawei.com \ --cc=benedictwong@google.com \ --cc=kernel-janitors@vger.kernel.org \ --cc=lorenzo@google.com \ --cc=netdev@vger.kernel.org \ --cc=steffen.klassert@secunet.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.