aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/lockd/svc.c2
-rw-r--r--fs/nfsd/lockd.c2
-rw-r--r--include/linux/lockd/bind.h2
3 files changed, 3 insertions, 3 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 @@
48 48
49static struct svc_program nlmsvc_program; 49static struct svc_program nlmsvc_program;
50 50
51struct nlmsvc_binding * nlmsvc_ops; 51const struct nlmsvc_binding *nlmsvc_ops;
52EXPORT_SYMBOL_GPL(nlmsvc_ops); 52EXPORT_SYMBOL_GPL(nlmsvc_ops);
53 53
54static DEFINE_MUTEX(nlmsvc_mutex); 54static DEFINE_MUTEX(nlmsvc_mutex);
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)
58 fput(filp); 58 fput(filp);
59} 59}
60 60
61static struct nlmsvc_binding nfsd_nlm_ops = { 61static const struct nlmsvc_binding nfsd_nlm_ops = {
62 .fopen = nlm_fopen, /* open file for locking */ 62 .fopen = nlm_fopen, /* open file for locking */
63 .fclose = nlm_fclose, /* close file */ 63 .fclose = nlm_fclose, /* close file */
64}; 64};
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 {
29 void (*fclose)(struct file *); 29 void (*fclose)(struct file *);
30}; 30};
31 31
32extern struct nlmsvc_binding * nlmsvc_ops; 32extern const struct nlmsvc_binding *nlmsvc_ops;
33 33
34/* 34/*
35 * Similar to nfs_client_initdata, but without the NFS-specific 35 * Similar to nfs_client_initdata, but without the NFS-specific