Skip to content

Commit a94b521

Browse files
author
Christoph Hellwig
committed
init: mark console_on_rootfs as __init
This helper is only used for the early init code. Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 916db73 commit a94b521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ static int __ref kernel_init(void *unused)
14581458
}
14591459

14601460
/* Open /dev/console, for stdin/stdout/stderr, this should never fail */
1461-
void console_on_rootfs(void)
1461+
void __init console_on_rootfs(void)
14621462
{
14631463
struct file *file = filp_open("/dev/console", O_RDWR, 0);
14641464

0 commit comments

Comments
 (0)