linux/drivers/block
Uwe Kleine-König d8d6608b76 block/swim: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/a00aea8201ea85ae726411bb0fb015ea026ff40a.1709886922.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-03-08 09:28:04 -07:00
..
aoe aoe: fix the potential use-after-free problem in aoecmd_cfg_pkts 2024-03-06 08:32:46 -07:00
drbd drbd: atomically update queue limits in drbd_reconsider_queue_parameters 2024-03-06 08:30:34 -07:00
mtip32xx mtip: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:59:31 -07:00
null_blk null_blk: Delete nullb.{queue_depth, nr_queues} 2024-02-22 10:08:47 -07:00
rnbd rnbd-clt: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:59:31 -07:00
xen-blkback drivers/block/xen-blkback/common.h: Fix spelling typo in comment 2024-01-04 16:10:29 -07:00
zram zram: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:58:24 -07:00
amiflop.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
ataflop.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
brd.c brd: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:58:23 -07:00
floppy.c floppy: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:59:31 -07:00
Kconfig block: ublk: switch to ioctl command encoding 2023-04-18 20:13:30 -06:00
loop.c loop: use the atomic queue limits update API 2024-02-13 08:56:59 -07:00
Makefile Revert "pktcdvd: remove driver." 2023-01-04 14:44:13 -07:00
n64cart.c n64cart: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:58:24 -07:00
nbd.c nbd: use the atomic queue limits API in nbd_set_size 2024-03-01 09:08:22 -07:00
pktcdvd.c pktcdvd: don't set max_hw_sectors on the underlying device 2024-03-01 09:08:00 -07:00
ps3disk.c ps3disk: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:59:31 -07:00
ps3vram.c block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
rbd_types.h
rbd.c rbd: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:59:31 -07:00
sunvdc.c sunvdc: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:59:31 -07:00
swim3.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00
swim_asm.S
swim.c block/swim: Convert to platform remove callback returning void 2024-03-08 09:28:04 -07:00
ublk_drv.c ublk: add UBLK_CMD_DEL_DEV_ASYNC 2024-02-28 18:47:08 -07:00
virtio_blk.c virtio_blk: Do not use disk_set_max_open/active_zones() 2024-03-06 08:33:58 -07:00
xen-blkfront.c xen-blkfront: atomically update queue limits 2024-02-27 09:33:08 -07:00
z2ram.c block: pass a queue_limits argument to blk_mq_alloc_disk 2024-02-13 08:56:59 -07:00