[28/52] m68k: hp300: Include "time.h" for hp300_sched_init()

Message ID a2f5257ed9e944f5295c7365848e6bac1e4789ee.1694093327.git.geert@linux-m68k.org
State New
Headers
Series None |

Commit Message

Geert Uytterhoeven Sept. 7, 2023, 1:41 p.m. UTC
  When building with W=1:

    arch/m68k/hp300/time.c:101:13: warning: no previous prototype for ‘hp300_sched_init’ [-Wmissing-prototypes]
      101 | void __init hp300_sched_init(void)
	  |             ^~~~~~~~~~~~~~~~

Fix this by including "time.h".

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/m68k/hp300/time.c | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/arch/m68k/hp300/time.c b/arch/m68k/hp300/time.c
index 1d1b7b3b5dd41583..72621fb9f3e663bd 100644
--- a/arch/m68k/hp300/time.c
+++ b/arch/m68k/hp300/time.c
@@ -20,6 +20,8 @@ 
 #include <asm/traps.h>
 #include <asm/blinken.h>
 
+#include "time.h"
+
 static u64 hp300_read_clk(struct clocksource *cs);
 
 static struct clocksource hp300_clk = {