diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-31 14:55:19 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-05 10:55:20 -0600 |
commit | c8643c72bc42781fc169c6498a3902bec447099e (patch) | |
tree | 253c1604456d74d3bc77d5a76734d686f62b2bc8 /init/do_mounts.h | |
parent | a6a41d39c2d91ff2543d31b6cc6070f3957e3aea (diff) |
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>
Diffstat (limited to 'init/do_mounts.h')
-rw-r--r-- | init/do_mounts.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/init/do_mounts.h b/init/do_mounts.h index 33623025f695..15e372b00ce7 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -10,8 +10,8 @@ #include <linux/root_dev.h> #include <linux/init_syscalls.h> -void mount_root_generic(char *name, int flags); -void mount_root(void); +void mount_root_generic(char *name, char *pretty_name, int flags); +void mount_root(char *root_device_name); extern int root_mountflags; static inline __init int create_dev(char *name, dev_t dev) @@ -33,11 +33,11 @@ static inline int rd_load_image(char *from) { return 0; } #endif #ifdef CONFIG_BLK_DEV_INITRD - -bool __init initrd_load(void); - +bool __init initrd_load(char *root_device_name); #else - -static inline bool initrd_load(void) { return false; } +static inline bool initrd_load(char *root_device_name) +{ + return false; + } #endif |