init: pass root_device_name explicitly
authorChristoph Hellwig <hch@lst.de>
Wed, 31 May 2023 12:55:19 +0000 (14:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Jun 2023 16:55:20 +0000 (10:55 -0600)
commitc8643c72bc42781fc169c6498a3902bec447099e
tree253c1604456d74d3bc77d5a76734d686f62b2bc8
parenta6a41d39c2d91ff2543d31b6cc6070f3957e3aea
init: pass root_device_name explicitly

Instead of declaring root_device_name as a global variable pass it as an
argument to the functions using it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230531125535.676098-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init/do_mounts.c
init/do_mounts.h
init/do_mounts_initrd.c