From: Jason Yan Date: Fri, 10 Mar 2017 02:48:13 +0000 (+0800) Subject: nfs: make nfs4_cb_sv_ops static X-Git-Tag: MMI-PSA29.97-13-9~5899^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05fae7bbc237bc7de0ee9c3dcf85b2572a80e3b5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index 484bebc20bca..5c8a096d763e 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c @@ -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, };