staging: lustre: fixed const warnings (struct seq_operations should be const in these...
authorXavier Roche <roche@httrack.com>
Fri, 5 Jun 2015 08:19:20 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 19:39:01 +0000 (12:39 -0700)
Minor warnings spotted by checkpatch.pl in lustre regarding const correctness: struct seq_operations should be const.

Signed-off-by: Xavier Roche <roche+git@httrack.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/vvp_dev.c
drivers/staging/lustre/lustre/lmv/lproc_lmv.c
drivers/staging/lustre/lustre/lov/lov_pool.c

index 2aae5f5fa8ea7aacb346557084f5be3e65a32f0c..b8f6a8779fd3e5385996db7386156d926a09d735 100644 (file)
@@ -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,
index 8583fe229cdd727506bde3afdebdcc2e1e9955b3..311fc1b70c4d0042e6afa163bf9e98751f54674d 100644 (file)
@@ -177,7 +177,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,
index 3c46c368cf134fbfae8ccb4292482072019ecf4e..1e4d3fbee323b6f4bed59947eae8506c9889e3be 100644 (file)
@@ -268,7 +268,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,