Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

swim: fix a missing FMODE_ -> BLK_OPEN_ conversion in floppy_open

Fix a missing conversion to the new BLK_OPEN constant in swim.

Fixes: 05bdb9965305 ("block: replace fmode_t with a block-specific type for block open flags")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230620043051.707196-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
9a7933f3 24516565

+1 -1
+1 -1
drivers/block/swim.c
··· 640 640 if (mode & (BLK_OPEN_READ | BLK_OPEN_WRITE)) { 641 641 if (disk_check_media_change(disk) && fs->disk_in) 642 642 fs->ejected = 0; 643 - if ((mode & FMODE_WRITE) && fs->write_protected) { 643 + if ((mode & BLK_OPEN_WRITE) && fs->write_protected) { 644 644 err = -EROFS; 645 645 goto out; 646 646 }