Messages in this thread Patch in this message | | | From | re.emese@gmail ... | Subject | [PATCH 3/3] Constify struct block_device_operations for 2.6.32-git-053fe57ac v2 | Date | Mon, 14 Dec 2009 00:59:22 +0100 |
| |
From: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Emese Revfy <re.emese@gmail.com> --- include/linux/blkdev.h | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 784a919..ec674e7 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1283,19 +1283,19 @@ static inline int blk_integrity_rq(struct request *rq) #endif /* CONFIG_BLK_DEV_INTEGRITY */ struct block_device_operations { - int (*open) (struct block_device *, fmode_t); - int (*release) (struct gendisk *, fmode_t); - int (*locked_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); - int (*ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); - int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); - int (*direct_access) (struct block_device *, sector_t, + int (* const open) (struct block_device *, fmode_t); + int (* const release) (struct gendisk *, fmode_t); + int (* const locked_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); + int (* const ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); + int (* const compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); + int (* const direct_access) (struct block_device *, sector_t, void **, unsigned long *); - int (*media_changed) (struct gendisk *); - unsigned long long (*set_capacity) (struct gendisk *, + int (* const media_changed) (struct gendisk *); + unsigned long long (* const set_capacity) (struct gendisk *, unsigned long long); - int (*revalidate_disk) (struct gendisk *); - int (*getgeo)(struct block_device *, struct hd_geometry *); - struct module *owner; + int (* const revalidate_disk) (struct gendisk *); + int (*const getgeo)(struct block_device *, struct hd_geometry *); + struct module * const owner; }; extern int __blkdev_driver_ioctl(struct block_device *, fmode_t, unsigned int, -- 1.6.5.3
| |