提交 a94b5214 编写于 作者: C Christoph Hellwig

init: mark console_on_rootfs as __init

This helper is only used for the early init code.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 916db733
...@@ -1458,7 +1458,7 @@ static int __ref kernel_init(void *unused) ...@@ -1458,7 +1458,7 @@ static int __ref kernel_init(void *unused)
} }
/* Open /dev/console, for stdin/stdout/stderr, this should never fail */ /* 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); struct file *file = filp_open("/dev/console", O_RDWR, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册