init: mark console_on_rootfs as __init
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jul 2020 16:23:21 +0000 (18:23 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:17:51 +0000 (08:17 +0200)
This helper is only used for the early init code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
init/main.c

index c2c9143..4769842 100644 (file)
@@ -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);