diff options
| author | Christoph Hellwig <hch@lst.de> | 2020-07-28 18:23:21 +0200 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2020-07-31 08:17:51 +0200 |
| commit | a94b5214487b626a148c6aab86809fbeb8fcd6b1 (patch) | |
| tree | 1dbfa220d4bf6fcef9d062bfe72f26cec5cd369c | |
| parent | 916db733deca5dc1e14ea8e3acfc121600a9f462 (diff) | |
| download | linux-a94b5214487b626a148c6aab86809fbeb8fcd6b1.tar.gz | |
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>
| -rw-r--r-- | init/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index c2c9143db96795..47698427b15f62 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); |
