blkdev: make struct block_device_operations.devnode() take a const *
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Nov 2022 14:48:43 +0000 (15:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:24:03 +0000 (18:24 +0100)
commitbe7e8b917ead54754cc14b6c03769c8738a3f3f3
tree53bd904ed0ebafd92019506c549fd88144f3f934
parentfa627348cfc7fb174468d88756b83c2d97890b07
blkdev: make struct block_device_operations.devnode() take a const *

The devnode() callback in struct block_device_operations should not be
modifying the device that is passed into it, so mark it as a const * and
propagate the function signature changes out into the one subsystem that
actually uses this callback.

Acked-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20221109144843.679668-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/pktcdvd.c
include/linux/blkdev.h