Whamcloud - gitweb
LU-6142 lustre: change all 'struct seq_operations' to const
[fs/lustre-release.git] / lustre / lov / lov_pool.c
index f31a9a7..73e2b6a 100644 (file)
@@ -204,11 +204,11 @@ static int pool_proc_show(struct seq_file *s, void *v)
         return 0;
 }
 
-static struct seq_operations pool_proc_ops = {
-        .start          = pool_proc_start,
-        .next           = pool_proc_next,
-        .stop           = pool_proc_stop,
-        .show           = pool_proc_show,
+static const struct seq_operations pool_proc_ops = {
+       .start          = pool_proc_start,
+       .next           = pool_proc_next,
+       .stop           = pool_proc_stop,
+       .show           = pool_proc_show,
 };
 
 static int pool_proc_open(struct inode *inode, struct file *file)
@@ -223,11 +223,11 @@ static int pool_proc_open(struct inode *inode, struct file *file)
         return rc;
 }
 
-static struct file_operations pool_proc_operations = {
-        .open           = pool_proc_open,
-        .read           = seq_read,
-        .llseek         = seq_lseek,
-        .release        = seq_release,
+const static struct file_operations pool_proc_operations = {
+       .open           = pool_proc_open,
+       .read           = seq_read,
+       .llseek         = seq_lseek,
+       .release        = seq_release,
 };
 #endif /* CONFIG_PROC_FS */