summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/time.c
diff options
context:
space:
mode:
authorNanyong Sun <sunnanyong@huawei.com>2021-03-05 19:33:28 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-03-09 20:46:03 -0800
commitdb2a8f9256e9a2a931edb83622d81ca73c6c8c6a (patch)
treedad1438b20d0f395a6448252299084c8c52daea1 /arch/riscv/kernel/time.c
parente06f4ce1d4c63799eff9d3544b3f7468d5409f3e (diff)
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/kernel/time.c')
-rw-r--r--arch/riscv/kernel/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c
index 8a5cf99c0776..1b432264f7ef 100644
--- a/arch/riscv/kernel/time.c
+++ b/arch/riscv/kernel/time.c
@@ -9,6 +9,7 @@
#include <linux/delay.h>
#include <asm/sbi.h>
#include <asm/processor.h>
+#include <asm/timex.h>
unsigned long riscv_timebase;
EXPORT_SYMBOL_GPL(riscv_timebase);