]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
nfs: make nfs4_cb_sv_ops static
authorJason Yan <yanaijie@huawei.com>
Fri, 10 Mar 2017 02:48:13 +0000 (10:48 +0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Mar 2017 20:05:56 +0000 (16:05 -0400)
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>
fs/nfs/callback.c

index 484bebc20bca6a502cc621106d7f34975b48dedc..5c8a096d763e0dac4d374989338dc4ad8b8775f4 100644 (file)
@@ -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,
 };