lkml.org 
[lkml]   [2021]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 39/68] net/ncsi: Make local function ncsi_get_filter() static
    Date
    From: Wei Yongjun <weiyongjun1@huawei.com>

    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 | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/ncsi/ncsi-manage.c
    +++ b/net/ncsi/ncsi-manage.c
    @@ -38,7 +38,7 @@ static inline int ncsi_filter_size(int t
    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;

    \
     
     \ /
      Last update: 2021-04-15 17:04    [W:4.065 / U:0.460 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site