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:
committed by
Linus Torvalds
parent
7b021967c5
commit
83d5cde47d
@@ -247,7 +247,7 @@ static int pcd_block_media_changed(struct gendisk *disk)
|
||||
return cdrom_media_changed(&cd->info);
|
||||
}
|
||||
|
||||
static struct block_device_operations pcd_bdops = {
|
||||
static const struct block_device_operations pcd_bdops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pcd_block_open,
|
||||
.release = pcd_block_release,
|
||||
|
||||
@@ -807,7 +807,7 @@ static int pd_revalidate(struct gendisk *p)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct block_device_operations pd_fops = {
|
||||
static const struct block_device_operations pd_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pd_open,
|
||||
.release = pd_release,
|
||||
|
||||
@@ -262,7 +262,7 @@ static char *pf_buf; /* buffer for request in progress */
|
||||
|
||||
/* kernel glue structures */
|
||||
|
||||
static struct block_device_operations pf_fops = {
|
||||
static const struct block_device_operations pf_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = pf_open,
|
||||
.release = pf_release,
|
||||
|
||||
Reference in New Issue
Block a user