loop: deprecate autoloading callback loop_probe()
authorMauricio Faria de Oliveira <mfo@canonical.com>
Thu, 20 Jul 2023 14:30:32 +0000 (11:30 -0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Jul 2023 19:20:48 +0000 (13:20 -0600)
commit23881aec85f3219e8462e87c708815ee2cd82358
tree81374fbb781a2640203b2a72742c4cc186fbf2fa
parent106397376c0369fcc01c58dd189ff925a2724a57
loop: deprecate autoloading callback loop_probe()

The 'probe' callback in __register_blkdev() is only used under the
CONFIG_BLOCK_LEGACY_AUTOLOAD deprecation guard.

The loop_probe() function is only used for that callback, so guard it
too, accordingly.

See commit fbdee71bb5d8 ("block: deprecate autoloading based on dev_t").

Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230720143033.841001-2-mfo@canonical.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c