Skip to content

Commit 3dbd53c

Browse files
Christoph Hellwigaxboe
authored andcommitted
swim3: fix the floppy_locked_ioctl prototype
Add back the accidentally dropped mode parameter. Fixes: b60f7635788a ("swim3: fix the floppy_locked_ioctl prototype") Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 4f1731d commit 3dbd53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/swim3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static int fd_eject(struct floppy_state *fs)
882882
static struct floppy_struct floppy_type =
883883
{ 2880,18,2,80,0,0x1B,0x00,0xCF,0x6C,NULL }; /* 7 1.44MB 3.5" */
884884

885-
static int floppy_locked_ioctl(struct block_device *bdev,
885+
static int floppy_locked_ioctl(struct block_device *bdev, blk_mode_t mode,
886886
unsigned int cmd, unsigned long param)
887887
{
888888
struct floppy_state *fs = bdev->bd_disk->private_data;

0 commit comments

Comments
 (0)