]> www.infradead.org Git - users/hch/misc.git/commit
block: return void from the queue_sysfs_entry load_module method
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Oct 2024 05:08:41 +0000 (07:08 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:16:22 +0000 (08:16 -0600)
commitd51c9cdfc214dde98afe45d95f7fb3b4ad11aa9e
tree775fc242bda2078bfa9a1a0b7ce414c1fe682d85
parent758737d86f8a2d74c0fa9f8b2523fa7fd1e0d0aa
block: return void from the queue_sysfs_entry load_module method

Requesting a module either succeeds or does nothing, return an error from
this method does not make sense.

Also move the load_module after the store method in the struct
declaration to keep the important show and store methods together.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20241008050841.104602-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c
block/elevator.c
block/elevator.h