Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83d5cde4 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

const: make block_device_operations const

parent 7b021967
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ axon_ram_direct_access(struct block_device *device, sector_t sector,
	return 0;
}

static struct block_device_operations axon_ram_devops = {
static const struct block_device_operations axon_ram_devops = {
	.owner		= THIS_MODULE,
	.direct_access	= axon_ram_direct_access
};
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo);

#define MAX_DEV (16)

static struct block_device_operations ubd_blops = {
static const struct block_device_operations ubd_blops = {
        .owner		= THIS_MODULE,
        .open		= ubd_open,
        .release	= ubd_release,
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ static int DAC960_revalidate_disk(struct gendisk *disk)
	return 0;
}

static struct block_device_operations DAC960_BlockDeviceOperations = {
static const struct block_device_operations DAC960_BlockDeviceOperations = {
	.owner			= THIS_MODULE,
	.open			= DAC960_open,
	.getgeo			= DAC960_getgeo,
+1 −1
Original line number Diff line number Diff line
@@ -1632,7 +1632,7 @@ static int amiga_floppy_change(struct gendisk *disk)
	return 0;
}

static struct block_device_operations floppy_fops = {
static const struct block_device_operations floppy_fops = {
	.owner		= THIS_MODULE,
	.open		= floppy_open,
	.release	= floppy_release,
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@ aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo)
	return 0;
}

static struct block_device_operations aoe_bdops = {
static const struct block_device_operations aoe_bdops = {
	.open = aoeblk_open,
	.release = aoeblk_release,
	.getgeo = aoeblk_getgeo,
Loading