Skip to contentSkip to conversation

staging: lustre: lustre: llite: Added const

PATCH In review Anjali Menon 2 participants 2 messages Oct 3, 2015 – Oct 5, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: lustre: llite: Added const

Added const to the struct statement which fixed the coding style warning detected by chekpatch.pl

WARNING: struct seq_operations should normally be const

---
 drivers/staging/lustre/lustre/llite/vvp_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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,
Signature · 1 line
1.9.1
#1 lore raw
Quoted 7 lines · Anjali Menon

Added const to the struct statement which fixed the coding style warning detected by chekpatch.pl

WARNING: struct seq_operations should normally be const

---

Again same problem. This has already been done. I think you are using some other tree.

regards
sudip