mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philippe De Muyter <phdm@macqel.be>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] block : make partitions_op & diskstats_op const
Date: Fri, 6 Jul 2007 16:00:02 +0200	[thread overview]
Message-ID: <20070706140002.GA13275@muff.macqel.be> (raw)

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);

                 reply	other threads:[~2007-07-06 14:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070706140002.GA13275@muff.macqel.be \
    --to=phdm@macqel.be \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®