lkml.org 
[lkml]   [2017]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH for 4.9 24/39] nfs: make nfs4_cb_sv_ops static
    Date
    From: Jason Yan <yanaijie@huawei.com>

    [ Upstream commit 05fae7bbc237bc7de0ee9c3dcf85b2572a80e3b5 ]

    Fixes the following sparse warning:

    fs/nfs/callback.c:235:21: warning: symbol 'nfs4_cb_sv_ops' was not
    declared. Should it be static?

    Signed-off-by: Jason Yan <yanaijie@huawei.com>
    Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
    ---
    fs/nfs/callback.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
    index 0a2115084c3f..a227bd835439 100644
    --- a/fs/nfs/callback.c
    +++ b/fs/nfs/callback.c
    @@ -231,12 +231,12 @@ static struct svc_serv_ops nfs41_cb_sv_ops = {
    .svo_module = THIS_MODULE,
    };

    -struct svc_serv_ops *nfs4_cb_sv_ops[] = {
    +static struct svc_serv_ops *nfs4_cb_sv_ops[] = {
    [0] = &nfs40_cb_sv_ops,
    [1] = &nfs41_cb_sv_ops,
    };
    #else
    -struct svc_serv_ops *nfs4_cb_sv_ops[] = {
    +static struct svc_serv_ops *nfs4_cb_sv_ops[] = {
    [0] = &nfs40_cb_sv_ops,
    [1] = NULL,
    };
    --
    2.11.0
    \
     
     \ /
      Last update: 2017-09-18 02:44    [W:4.444 / U:0.204 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site