Skip to content

Commit 12f32bb

Browse files
Jan EngelhardtJens Axboe
authored andcommitted
block: constify function pointer tables
Signed-off-by: Jan Engelhardt <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent e7d9dc9 commit 12f32bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

block/genhd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static int show_partition(struct seq_file *part, void *v)
337337
return 0;
338338
}
339339

340-
struct seq_operations partitions_op = {
340+
const struct seq_operations partitions_op = {
341341
.start = part_start,
342342
.next = part_next,
343343
.stop = part_stop,
@@ -595,7 +595,7 @@ static int diskstats_show(struct seq_file *s, void *v)
595595
return 0;
596596
}
597597

598-
struct seq_operations diskstats_op = {
598+
const struct seq_operations diskstats_op = {
599599
.start = diskstats_start,
600600
.next = diskstats_next,
601601
.stop = diskstats_stop,

0 commit comments

Comments
 (0)