aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/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 /include/linux/lockd
parentlockd: use to_delayed_work (diff)
downloadlinux-dev-2a297450dd188a5d4e5e428c189b2de54f9073ba.tar.xz
linux-dev-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 'include/linux/lockd')
-rw-r--r--include/linux/lockd/bind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/lockd/bind.h b/include/linux/lockd/bind.h
index 4d24d64578c4..140edab64446 100644
--- a/include/linux/lockd/bind.h
+++ b/include/linux/lockd/bind.h
@@ -29,7 +29,7 @@ struct nlmsvc_binding {
void (*fclose)(struct file *);
};
-extern struct nlmsvc_binding * nlmsvc_ops;
+extern const struct nlmsvc_binding *nlmsvc_ops;
/*
* Similar to nfs_client_initdata, but without the NFS-specific