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>
This commit is contained in:
Alexey Dobriyan
2009-09-21 17:01:13 -07:00
committed by Linus Torvalds
parent 7b021967c5
commit 83d5cde47d
56 changed files with 59 additions and 61 deletions

View File

@@ -1716,7 +1716,7 @@ out:
return r;
}
static struct block_device_operations dm_blk_dops;
static const struct block_device_operations dm_blk_dops;
static void dm_wq_work(struct work_struct *work);
@@ -2663,7 +2663,7 @@ void dm_free_md_mempools(struct dm_md_mempools *pools)
kfree(pools);
}
static struct block_device_operations dm_blk_dops = {
static const struct block_device_operations dm_blk_dops = {
.open = dm_blk_open,
.release = dm_blk_close,
.ioctl = dm_blk_ioctl,

View File

@@ -138,7 +138,7 @@ static ctl_table raid_root_table[] = {
{ .ctl_name = 0 }
};
static struct block_device_operations md_fops;
static const struct block_device_operations md_fops;
static int start_readonly;
@@ -5556,7 +5556,7 @@ static int md_revalidate(struct gendisk *disk)
mddev->changed = 0;
return 0;
}
static struct block_device_operations md_fops =
static const struct block_device_operations md_fops =
{
.owner = THIS_MODULE,
.open = md_open,