[PATCH] block : make partitions_op & diskstats_op const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Make partitions_op & diskstats_op const

Signed-off-by: Philippe De Muyter <[email protected]>

diff -r 6c0a10cc415a block/genhd.c
--- a/block/genhd.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/block/genhd.c	Fri Jul  6 15:57:07 2007 +0200
@@ -328,7 +328,7 @@ static int show_partition(struct seq_fil
 	return 0;
 }
 
-struct seq_operations partitions_op = {
+const struct seq_operations partitions_op = {
 	.start =part_start,
 	.next =	part_next,
 	.stop =	part_stop,
@@ -689,7 +689,7 @@ static int diskstats_show(struct seq_fil
 	return 0;
 }
 
-struct seq_operations diskstats_op = {
+const struct seq_operations diskstats_op = {
 	.start	= diskstats_start,
 	.next	= diskstats_next,
 	.stop	= diskstats_stop,
diff -r 6c0a10cc415a fs/proc/proc_misc.c
--- a/fs/proc/proc_misc.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/fs/proc/proc_misc.c	Fri Jul  6 15:57:07 2007 +0200
@@ -357,7 +357,7 @@ static int stram_read_proc(char *page, c
 #endif
 
 #ifdef CONFIG_BLOCK
-extern struct seq_operations partitions_op;
+extern const struct seq_operations partitions_op;
 static int partitions_open(struct inode *inode, struct file *file)
 {
 	return seq_open(file, &partitions_op);
@@ -369,7 +369,7 @@ static const struct file_operations proc
 	.release	= seq_release,
 };
 
-extern struct seq_operations diskstats_op;
+extern const struct seq_operations diskstats_op;
 static int diskstats_open(struct inode *inode, struct file *file)
 {
 	return seq_open(file, &diskstats_op);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux