Commit 49f1b2c1 authored by Jason Yan's avatar Jason Yan Committed by Greg Kroah-Hartman

nfs: make nfs4_cb_sv_ops static


[ Upstream commit 05fae7bb ]

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: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1cf8f946
...@@ -239,12 +239,12 @@ static struct svc_serv_ops nfs41_cb_sv_ops = { ...@@ -239,12 +239,12 @@ static struct svc_serv_ops nfs41_cb_sv_ops = {
.svo_module = THIS_MODULE, .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, [0] = &nfs40_cb_sv_ops,
[1] = &nfs41_cb_sv_ops, [1] = &nfs41_cb_sv_ops,
}; };
#else #else
struct svc_serv_ops *nfs4_cb_sv_ops[] = { static struct svc_serv_ops *nfs4_cb_sv_ops[] = {
[0] = &nfs40_cb_sv_ops, [0] = &nfs40_cb_sv_ops,
[1] = NULL, [1] = NULL,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment