lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 8 May 2014 14:50:38 -0700 From: Asai Thambi S P <asamymuthupa@...ron.com> To: Jens Axboe <axboe@...nel.dk> CC: linux-kernel <linux-kernel@...r.kernel.org>, Sam Bradshaw <sbradshaw@...ron.com>, Selvan Mani <smani@...ron.com> Subject: mtip32xx: add open/close handlers in block device ops Add open/close handlers to 'block_device_operations' instance. Signed-off-by: Selvan Mani <smani@...ron.com> Signed-off-by: Asai Thambi S P <asamymuthupa@...ron.com> --- drivers/block/mtip32xx/mtip32xx.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 7dc4fb4..bbbd83e 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -4010,6 +4010,16 @@ static int mtip_block_getgeo(struct block_device *dev, return 0; } +int mtip_block_open(struct block_device *disk, fmode_t mode) +{ + return 0; +} + +void mtip_block_release(struct gendisk *disk, fmode_t mode) +{ + return; +} + /* * Block device operation function. * @@ -4017,6 +4027,8 @@ static int mtip_block_getgeo(struct block_device *dev, * layer. */ static const struct block_device_operations mtip_block_ops = { + .open = mtip_block_open, + .release = mtip_block_release, .ioctl = mtip_block_ioctl, #ifdef CONFIG_COMPAT .compat_ioctl = mtip_block_compat_ioctl, -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists