Skip to content

Commit 05fae7b

Browse files
JasonYanHwamschuma-ntap
authored andcommitted
nfs: make nfs4_cb_sv_ops static
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>
1 parent eed5087 commit 05fae7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfs/callback.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ static struct svc_serv_ops nfs41_cb_sv_ops = {
231231
.svo_module = THIS_MODULE,
232232
};
233233

234-
struct svc_serv_ops *nfs4_cb_sv_ops[] = {
234+
static struct svc_serv_ops *nfs4_cb_sv_ops[] = {
235235
[0] = &nfs40_cb_sv_ops,
236236
[1] = &nfs41_cb_sv_ops,
237237
};
238238
#else
239-
struct svc_serv_ops *nfs4_cb_sv_ops[] = {
239+
static struct svc_serv_ops *nfs4_cb_sv_ops[] = {
240240
[0] = &nfs40_cb_sv_ops,
241241
[1] = NULL,
242242
};

0 commit comments

Comments
 (0)