2008-01-22 19:49:09

by Jan Engelhardt

[permalink] [raw]
Subject: [NFS] [PATCH] knfsd: constify function pointer tables

Signed-off-by: Jan Engelhardt <[email protected]>
---
fs/nfsd/export.c | 2 +-
fs/nfsd/nfsctl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index 66d0aeb..af2da43 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1539,7 +1539,7 @@ static int e_show(struct seq_file *m, void *p)
return svc_export_show(m, &svc_export_cache, cp);
}

-struct seq_operations nfs_exports_op = {
+const struct seq_operations nfs_exports_op = {
.start = e_start,
.next = e_next,
.stop = e_stop,
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 77dc989..9d23cae 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -149,7 +149,7 @@ static const struct file_operations transaction_ops = {
.release = simple_transaction_release,
};

-extern struct seq_operations nfs_exports_op;
+extern const struct seq_operations nfs_exports_op;
static int exports_open(struct inode *inode, struct file *file)
{
return seq_open(file, &nfs_exports_op);
--
1.5.3.4


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued.
Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs