From: Christoph Hellwig Date: Tue, 28 Jul 2020 16:23:21 +0000 (+0200) Subject: init: mark console_on_rootfs as __init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a94b5214487b626a148c6aab86809fbeb8fcd6b1;p=linux.git init: mark console_on_rootfs as __init This helper is only used for the early init code. Signed-off-by: Christoph Hellwig --- diff --git a/init/main.c b/init/main.c index c2c9143db9679..47698427b15f6 100644 --- a/init/main.c +++ b/init/main.c @@ -1458,7 +1458,7 @@ static int __ref kernel_init(void *unused) } /* Open /dev/console, for stdin/stdout/stderr, this should never fail */ -void console_on_rootfs(void) +void __init console_on_rootfs(void) { struct file *file = filp_open("/dev/console", O_RDWR, 0);