cdrom: remove the unused mode argument to cdrom_release

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Phillip Potter <phil@philpotter.co.uk>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20230608110258.189493-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Christoph Hellwig 2023-06-08 13:02:34 +02:00 committed by Jens Axboe
parent 8cdf433e2b
commit 7ae24fcee9
4 changed files with 4 additions and 4 deletions

View File

@ -1250,7 +1250,7 @@ static int check_for_audio_disc(struct cdrom_device_info *cdi,
return 0; return 0;
} }
void cdrom_release(struct cdrom_device_info *cdi, fmode_t mode) void cdrom_release(struct cdrom_device_info *cdi)
{ {
const struct cdrom_device_ops *cdo = cdi->ops; const struct cdrom_device_ops *cdo = cdi->ops;

View File

@ -481,7 +481,7 @@ static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode)
bdev_check_media_change(bdev); bdev_check_media_change(bdev);
mutex_lock(&gdrom_mutex); mutex_lock(&gdrom_mutex);
ret = cdrom_open(gd.cd_info, mode); ret = cdrom_open(gd.cd_info);
mutex_unlock(&gdrom_mutex); mutex_unlock(&gdrom_mutex);
return ret; return ret;
} }

View File

@ -512,7 +512,7 @@ static void sr_block_release(struct gendisk *disk, fmode_t mode)
struct scsi_cd *cd = scsi_cd(disk); struct scsi_cd *cd = scsi_cd(disk);
mutex_lock(&cd->lock); mutex_lock(&cd->lock);
cdrom_release(&cd->cdi, mode); cdrom_release(&cd->cdi);
mutex_unlock(&cd->lock); mutex_unlock(&cd->lock);
scsi_device_put(cd->device); scsi_device_put(cd->device);

View File

@ -102,7 +102,7 @@ int cdrom_read_tocentry(struct cdrom_device_info *cdi,
/* the general block_device operations structure: */ /* the general block_device operations structure: */
int cdrom_open(struct cdrom_device_info *cdi, fmode_t mode); int cdrom_open(struct cdrom_device_info *cdi, fmode_t mode);
extern void cdrom_release(struct cdrom_device_info *cdi, fmode_t mode); void cdrom_release(struct cdrom_device_info *cdi);
int cdrom_ioctl(struct cdrom_device_info *cdi, struct block_device *bdev, int cdrom_ioctl(struct cdrom_device_info *cdi, struct block_device *bdev,
unsigned int cmd, unsigned long arg); unsigned int cmd, unsigned long arg);
extern unsigned int cdrom_check_events(struct cdrom_device_info *cdi, extern unsigned int cdrom_check_events(struct cdrom_device_info *cdi,