mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
nfs: make nfs4_cb_sv_ops static
[ Upstream commit 05fae7bbc2 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1cf8f9467e
commit
49f1b2c154
@@ -239,12 +239,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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user