[Cluster-devel] [PATCH] [DLM]: constify function pointer tables

Jan Engelhardt <[email protected]>
Newsgroups com.redhat.cluster-devel
Message-ID <[email protected]>
Signed-off-by: Jan Engelhardt <[email protected]>
---
 fs/dlm/debug_fs.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index 12c3bfd..15333eb 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -342,7 +342,7 @@ static int rsb_seq_show(struct seq_file *file, void *iter_ptr)
 	return 0;
 }
 
-static struct seq_operations rsb_seq_ops = {
+static const struct seq_operations rsb_seq_ops = {
 	.start = rsb_seq_start,
 	.next  = rsb_seq_next,
 	.stop  = rsb_seq_stop,
@@ -419,7 +419,7 @@ static void *locks_seq_start(struct seq_file *file, loff_t *pos)
 	return ri;
 }
 
-static struct seq_operations locks_seq_ops = {
+static const struct seq_operations locks_seq_ops = {
 	.start = locks_seq_start,
 	.next  = rsb_seq_next,
 	.stop  = rsb_seq_stop,
-- 
1.5.3.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.