summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-12-23 22:25:13 +0100
committerJ. Bruce Fields <bfields@redhat.com>2016-01-07 10:10:50 -0500
commit2a297450dd188a5d4e5e428c189b2de54f9073ba (patch)
tree0316c3948ed5bc4ae5a40a1340cec60e0b516337 /fs/lockd
parentea44463f376236a0541288cb8d575ab6b50370d2 (diff)
downloadtalos-op-linux-2a297450dd188a5d4e5e428c189b2de54f9073ba.tar.gz
talos-op-linux-2a297450dd188a5d4e5e428c189b2de54f9073ba.zip
lockd: constify nlmsvc_binding structure
The nlmsvc_binding structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c
index b4006c720f55..154a107cd376 100644
--- a/fs/lockd/svc.c
+++ b/fs/lockd/svc.c
@@ -48,7 +48,7 @@
static struct svc_program nlmsvc_program;
-struct nlmsvc_binding * nlmsvc_ops;
+const struct nlmsvc_binding *nlmsvc_ops;
EXPORT_SYMBOL_GPL(nlmsvc_ops);
static DEFINE_MUTEX(nlmsvc_mutex);
OpenPOWER on IntegriCloud