summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/lockd.c
diff options
context:
space:
mode:
authorJulia Lawall2015-12-23 22:25:13 +0100
committerJ. Bruce Fields2016-01-07 16:10:50 +0100
commit2a297450dd188a5d4e5e428c189b2de54f9073ba (patch)
tree0316c3948ed5bc4ae5a40a1340cec60e0b516337 /fs/nfsd/lockd.c
parentlockd: use to_delayed_work (diff)
downloadkernel-qcow2-linux-2a297450dd188a5d4e5e428c189b2de54f9073ba.tar.gz
kernel-qcow2-linux-2a297450dd188a5d4e5e428c189b2de54f9073ba.tar.xz
kernel-qcow2-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/nfsd/lockd.c')
-rw-r--r--fs/nfsd/lockd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/lockd.c b/fs/nfsd/lockd.c
index 77e7a5cca888..1a03bc3059e8 100644
--- a/fs/nfsd/lockd.c
+++ b/fs/nfsd/lockd.c
@@ -58,7 +58,7 @@ nlm_fclose(struct file *filp)
fput(filp);
}
-static struct nlmsvc_binding nfsd_nlm_ops = {
+static const struct nlmsvc_binding nfsd_nlm_ops = {
.fopen = nlm_fopen, /* open file for locking */
.fclose = nlm_fclose, /* close file */
};