Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jason Yan and committed by
Anna Schumaker
05fae7bb eed50879

+2 -2
+2 -2
fs/nfs/callback.c
··· 231 231 .svo_module = THIS_MODULE, 232 232 }; 233 233 234 - struct svc_serv_ops *nfs4_cb_sv_ops[] = { 234 + static struct svc_serv_ops *nfs4_cb_sv_ops[] = { 235 235 [0] = &nfs40_cb_sv_ops, 236 236 [1] = &nfs41_cb_sv_ops, 237 237 }; 238 238 #else 239 - struct svc_serv_ops *nfs4_cb_sv_ops[] = { 239 + static struct svc_serv_ops *nfs4_cb_sv_ops[] = { 240 240 [0] = &nfs40_cb_sv_ops, 241 241 [1] = NULL, 242 242 };