init: mark console_on_rootfs as __init

This helper is only used for the early init code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Christoph Hellwig 2020-07-28 18:23:21 +02:00
parent 916db733de
commit a94b521448

View 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);