netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net/ncsi: Make local function ncsi_get_filter() static
@ 2017-11-02 11:15 Wei Yongjun
  2017-11-03  6:44 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2017-11-02 11:15 UTC (permalink / raw)
  To: Samuel Mendoza-Jonas, Gavin Shan, Arnd Bergmann; +Cc: Wei Yongjun, netdev

Fixes the following sparse warnings:

net/ncsi/ncsi-manage.c:41:5: warning:
 symbol 'ncsi_get_filter' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 net/ncsi/ncsi-manage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ncsi/ncsi-manage.c b/net/ncsi/ncsi-manage.c
index 28c42b2..47baf91 100644
--- a/net/ncsi/ncsi-manage.c
+++ b/net/ncsi/ncsi-manage.c
@@ -38,7 +38,7 @@ static inline int ncsi_filter_size(int table)
 	return sizes[table];
 }
 
-u32 *ncsi_get_filter(struct ncsi_channel *nc, int table, int index)
+static u32 *ncsi_get_filter(struct ncsi_channel *nc, int table, int index)
 {
 	struct ncsi_channel_filter *ncf;
 	int size;

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

* Re: [PATCH net-next] net/ncsi: Make local function ncsi_get_filter() static
  2017-11-02 11:15 [PATCH net-next] net/ncsi: Make local function ncsi_get_filter() static Wei Yongjun
@ 2017-11-03  6:44 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-11-03  6:44 UTC (permalink / raw)
  To: weiyongjun1; +Cc: sam, gwshan, arnd, netdev

From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Thu, 2 Nov 2017 11:15:28 +0000

> Fixes the following sparse warnings:
> 
> net/ncsi/ncsi-manage.c:41:5: warning:
>  symbol 'ncsi_get_filter' was not declared. Should it be static?
> 
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>

Applied, thank you.

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

end of thread, other threads:[~2017-11-03  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-02 11:15 [PATCH net-next] net/ncsi: Make local function ncsi_get_filter() static Wei Yongjun
2017-11-03  6:44 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).