You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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
@@ -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
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user