swim: don't call blk_queue_bounce_limit
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Apr 2021 06:17:25 +0000 (08:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Apr 2021 15:29:47 +0000 (09:29 -0600)
m68k doesn't support highmem, so don't bother enabling the block layer
bounce buffer code.  Just for safety throw in a depend on !HIGHMEM.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210406061725.811389-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/Kconfig
drivers/block/swim.c

index 44a3c6e..63056cf 100644 (file)
@@ -50,7 +50,7 @@ config MAC_FLOPPY
 
 config BLK_DEV_SWIM
        tristate "Support for SWIM Macintosh floppy"
-       depends on M68K && MAC
+       depends on M68K && MAC && !HIGHMEM
        help
          You should select this option if you want floppy support
          and you don't have a II, IIfx, Q900, Q950 or AV series.
index cc6a0bc..2917b21 100644 (file)
@@ -816,8 +816,6 @@ static int swim_floppy_init(struct swim_priv *swd)
                }
 
                swd->unit[drive].disk->queue = q;
-               blk_queue_bounce_limit(swd->unit[drive].disk->queue,
-                               BLK_BOUNCE_HIGH);
                swd->unit[drive].disk->queue->queuedata = &swd->unit[drive];
                swd->unit[drive].swd = swd;
        }