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
+1
-1
@@ -130,7 +130,7 @@ static struct gendisk *xd_gendisk[2];
|
||||
|
||||
static int xd_getgeo(struct block_device *bdev, struct hd_geometry *geo);
|
||||
|
||||
static struct block_device_operations xd_fops = {
|
||||
static const struct block_device_operations xd_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.locked_ioctl = xd_ioctl,
|
||||
.getgeo = xd_getgeo,
|
||||
|
||||
Reference in New Issue
Block a user