diff options
author | Nanyong Sun <sunnanyong@huawei.com> | 2021-03-05 12:33:28 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-03-10 05:46:03 +0100 |
commit | db2a8f9256e9a2a931edb83622d81ca73c6c8c6a (patch) | |
tree | dad1438b20d0f395a6448252299084c8c52daea1 /arch/riscv/include/asm/timex.h | |
parent | riscv: ptrace: Fix no prototype warnings (diff) | |
download | linux-db2a8f9256e9a2a931edb83622d81ca73c6c8c6a.tar.xz linux-db2a8f9256e9a2a931edb83622d81ca73c6c8c6a.zip |
riscv: time: Fix no prototype for time_init
Fix the following W=1 compilation warning:
arch/riscv/kernel/time.c:16:13: warning: no previous prototype for ‘time_init’ [-Wmissing-prototypes]
16 | void __init time_init(void)
| ^~~~~~~~~
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Nanyong Sun <sunnanyong@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include/asm/timex.h')
-rw-r--r-- | arch/riscv/include/asm/timex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/timex.h b/arch/riscv/include/asm/timex.h index 81de51e6aa32..507cae273bc6 100644 --- a/arch/riscv/include/asm/timex.h +++ b/arch/riscv/include/asm/timex.h @@ -88,4 +88,6 @@ static inline int read_current_timer(unsigned long *timer_val) return 0; } +extern void time_init(void); + #endif /* _ASM_RISCV_TIMEX_H */ |