Skip to contentSkip to conversation

staging: lustre: fixed const warnings (struct seq_operations should be const in these contexts)

PATCH New Xavier Roche 1 participant 1 message Jun 5, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: fixed const warnings (struct seq_operations should be const in these contexts)

Minor warnings spotted by checkpatch.pl in lustre regarding const correctness: struct seq_operations should be const.

---
 drivers/staging/lustre/lustre/llite/vvp_dev.c | 2 +-
 drivers/staging/lustre/lustre/lmv/lproc_lmv.c | 2 +-
 drivers/staging/lustre/lustre/lov/lov_pool.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/lustre/lustre/llite/vvp_dev.c +1 -1
index fde41d7..742be5a 100644
@@ -517,7 +517,7 @@ static void vvp_pgcache_stop(struct seq_file *f, void *v)
 	/* Nothing to do */
 }
 
-static struct seq_operations vvp_pgcache_ops = {
+static const struct seq_operations vvp_pgcache_ops = {
 	.start = vvp_pgcache_start,
 	.next  = vvp_pgcache_next,
 	.stop  = vvp_pgcache_stop,
drivers/staging/lustre/lustre/lmv/lproc_lmv.c +1 -1
index 22e5c31..8892b8b 100644
@@ -182,7 +182,7 @@ static int lmv_tgt_seq_show(struct seq_file *p, void *v)
 	return 0;
 }
 
-static struct seq_operations lmv_tgt_sops = {
+static const struct seq_operations lmv_tgt_sops = {
 	.start		 = lmv_tgt_seq_start,
 	.stop		  = lmv_tgt_seq_stop,
 	.next		  = lmv_tgt_seq_next,
drivers/staging/lustre/lustre/lov/lov_pool.c +1 -1
index d96163d..69eaf66 100644
@@ -269,7 +269,7 @@ static int pool_proc_show(struct seq_file *s, void *v)
 	return 0;
 }
 
-static struct seq_operations pool_proc_ops = {
+static const struct seq_operations pool_proc_ops = {
 	.start	  = pool_proc_start,
 	.next	   = pool_proc_next,
 	.stop	   = pool_proc_stop,
Signature · 1 line
1.9.1