]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net/ncsi: Make local function ncsi_get_filter() static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 2 Nov 2017 11:15:28 +0000 (11:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:57:51 +0000 (11:57 +0200)
commit 5a6d80034471d4407052c4bf3758071df5cadf33 upstream.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ncsi/ncsi-manage.c

index 6b7f9e1f64d3f1f9e1d62e372c57be18be41f3df..d908affe04213c41f9b658c17fa9d1ddc7e4707a 100644 (file)
@@ -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;