aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2009-09-21 20:01:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-22 10:17:25 -0400
commit83d5cde47dedf01b6a4a4331882cbc0a7eea3c2e (patch)
treef8ba5e263717d35cd444fcc65898d2ed352af1ae /drivers/md/dm.c
parent7b021967c5e1463936042c8da72b550d3cabe9ac (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/dm.c')
-rw-r--r--drivers/md/dm.c4
1 files changed, 2 insertions, 2 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
1719static struct block_device_operations dm_blk_dops; 1719static const struct block_device_operations dm_blk_dops;
1720 1720
1721static void dm_wq_work(struct work_struct *work); 1721static 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
2666static struct block_device_operations dm_blk_dops = { 2666static 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,