* [PATCH] block : make partitions_op & diskstats_op const
@ 2007-07-06 14:00 Philippe De Muyter
0 siblings, 0 replies; only message in thread
From: Philippe De Muyter @ 2007-07-06 14:00 UTC (permalink / raw)
To: linux-kernel
Hi all,
Make partitions_op & diskstats_op const
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-06 14:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-06 14:00 [PATCH] block : make partitions_op & diskstats_op const Philippe De Muyter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®