diff options
author | Tiwei Bie <tiwei.btw@antgroup.com> | 2024-03-06 18:19:17 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-04-22 21:43:03 +0200 |
commit | 53471c574974a3df4a5705b1db431d69058cc6d9 (patch) | |
tree | 51cb41a305c0956d79f766aee32673dd5dcb81d1 /arch/um/kernel/kmsg_dump.c | |
parent | 31a5990ed253a66712d7ddc29c92d297a991fdf2 (diff) |
um: Make local functions and variables static
This will also fix the warnings like:
warning: no previous prototype for ‘fork_handler’ [-Wmissing-prototypes]
140 | void fork_handler(void)
| ^~~~~~~~~~~~
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/kmsg_dump.c')
-rw-r--r-- | arch/um/kernel/kmsg_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/kmsg_dump.c b/arch/um/kernel/kmsg_dump.c index 427dd5a61a38..4382cf02a6d1 100644 --- a/arch/um/kernel/kmsg_dump.c +++ b/arch/um/kernel/kmsg_dump.c @@ -57,7 +57,7 @@ static struct kmsg_dumper kmsg_dumper = { .dump = kmsg_dumper_stdout }; -int __init kmsg_dumper_stdout_init(void) +static int __init kmsg_dumper_stdout_init(void) { return kmsg_dump_register(&kmsg_dumper); } |