diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-09-21 20:01:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:25 -0400 |
commit | 83d5cde47dedf01b6a4a4331882cbc0a7eea3c2e (patch) | |
tree | f8ba5e263717d35cd444fcc65898d2ed352af1ae /drivers/md | |
parent | 7b021967c5e1463936042c8da72b550d3cabe9ac (diff) |
const: make block_device_operations const
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 4 | ||||
-rw-r--r-- | drivers/md/md.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index eee28fac210c..376f1ab48a24 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -1716,7 +1716,7 @@ out: | |||
1716 | return r; | 1716 | return r; |
1717 | } | 1717 | } |
1718 | 1718 | ||
1719 | static struct block_device_operations dm_blk_dops; | 1719 | static const struct block_device_operations dm_blk_dops; |
1720 | 1720 | ||
1721 | static void dm_wq_work(struct work_struct *work); | 1721 | static void dm_wq_work(struct work_struct *work); |
1722 | 1722 | ||
@@ -2663,7 +2663,7 @@ void dm_free_md_mempools(struct dm_md_mempools *pools) | |||
2663 | kfree(pools); | 2663 | kfree(pools); |
2664 | } | 2664 | } |
2665 | 2665 | ||
2666 | static struct block_device_operations dm_blk_dops = { | 2666 | static const struct block_device_operations dm_blk_dops = { |
2667 | .open = dm_blk_open, | 2667 | .open = dm_blk_open, |
2668 | .release = dm_blk_close, | 2668 | .release = dm_blk_close, |
2669 | .ioctl = dm_blk_ioctl, | 2669 | .ioctl = dm_blk_ioctl, |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 9dd872000cec..6aa497e4baf8 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -138,7 +138,7 @@ static ctl_table raid_root_table[] = { | |||
138 | { .ctl_name = 0 } | 138 | { .ctl_name = 0 } |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static struct block_device_operations md_fops; | 141 | static const struct block_device_operations md_fops; |
142 | 142 | ||
143 | static int start_readonly; | 143 | static int start_readonly; |
144 | 144 | ||
@@ -5556,7 +5556,7 @@ static int md_revalidate(struct gendisk *disk) | |||
5556 | mddev->changed = 0; | 5556 | mddev->changed = 0; |
5557 | return 0; | 5557 | return 0; |
5558 | } | 5558 | } |
5559 | static struct block_device_operations md_fops = | 5559 | static const struct block_device_operations md_fops = |
5560 | { | 5560 | { |
5561 | .owner = THIS_MODULE, | 5561 | .owner = THIS_MODULE, |
5562 | .open = md_open, | 5562 | .open = md_open, |