Skip to content

Commit

Permalink
block: constify function pointer tables
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jan Engelhardt authored and Jens Axboe committed Jan 29, 2008
1 parent e7d9dc9 commit 12f32bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static int show_partition(struct seq_file *part, void *v)
return 0;
}

struct seq_operations partitions_op = {
const struct seq_operations partitions_op = {
.start = part_start,
.next = part_next,
.stop = part_stop,
Expand Down Expand Up @@ -595,7 +595,7 @@ static int diskstats_show(struct seq_file *s, void *v)
return 0;
}

struct seq_operations diskstats_op = {
const struct seq_operations diskstats_op = {
.start = diskstats_start,
.next = diskstats_next,
.stop = diskstats_stop,
Expand Down

0 comments on commit 12f32bb

Please sign in to comment.