diff mbox series

swim3: fix the floppy_locked_ioctl prototype

Message ID 20230613154309.327557-1-hch@lst.de (mailing list archive)
State New, archived
Headers show
Series swim3: fix the floppy_locked_ioctl prototype | expand

Commit Message

Christoph Hellwig June 13, 2023, 3:43 p.m. UTC
Add back the accidentally dropped mode parameter.

Fixes: b60f7635788a ("swim3: fix the floppy_locked_ioctl prototype")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/block/swim3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jens Axboe June 13, 2023, 3:46 p.m. UTC | #1
On Tue, 13 Jun 2023 17:43:09 +0200, Christoph Hellwig wrote:
> Add back the accidentally dropped mode parameter.
> 
> 

Applied, thanks!

[1/1] swim3: fix the floppy_locked_ioctl prototype
      commit: 3dbd53c7be1c3dd04875a0672262b56417039869

Best regards,
Randy Dunlap June 13, 2023, 4:12 p.m. UTC | #2
On 6/13/23 08:43, Christoph Hellwig wrote:
> Add back the accidentally dropped mode parameter.
> 
> Fixes: b60f7635788a ("swim3: fix the floppy_locked_ioctl prototype")
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested

Thanks.

> ---
>  drivers/block/swim3.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
> index 945a0315425070..dc43a63b346946 100644
> --- a/drivers/block/swim3.c
> +++ b/drivers/block/swim3.c
> @@ -882,7 +882,7 @@ static int fd_eject(struct floppy_state *fs)
>  static struct floppy_struct floppy_type =
>  	{ 2880,18,2,80,0,0x1B,0x00,0xCF,0x6C,NULL };	/*  7 1.44MB 3.5"   */
>  
> -static int floppy_locked_ioctl(struct block_device *bdev,
> +static int floppy_locked_ioctl(struct block_device *bdev, blk_mode_t mode,
>  			unsigned int cmd, unsigned long param)
>  {
>  	struct floppy_state *fs = bdev->bd_disk->private_data;
diff mbox series

Patch

diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index 945a0315425070..dc43a63b346946 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -882,7 +882,7 @@  static int fd_eject(struct floppy_state *fs)
 static struct floppy_struct floppy_type =
 	{ 2880,18,2,80,0,0x1B,0x00,0xCF,0x6C,NULL };	/*  7 1.44MB 3.5"   */
 
-static int floppy_locked_ioctl(struct block_device *bdev,
+static int floppy_locked_ioctl(struct block_device *bdev, blk_mode_t mode,
 			unsigned int cmd, unsigned long param)
 {
 	struct floppy_state *fs = bdev->bd_disk->private_data;