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:
parent
7b021967c5
commit
83d5cde47d
56 changed files with 59 additions and 61 deletions
|
@ -748,7 +748,7 @@ static int floppy_revalidate(struct gendisk *disk)
|
|||
return !fs->disk_in;
|
||||
}
|
||||
|
||||
static struct block_device_operations floppy_fops = {
|
||||
static const struct block_device_operations floppy_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = floppy_open,
|
||||
.release = floppy_release,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue