projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18fe6bf
)
m68k: hp300: Include "time.h" for hp300_sched_init()
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Wed, 13 Sep 2023 14:08:18 +0000
(16:08 +0200)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Fri, 6 Oct 2023 08:03:03 +0000
(10:03 +0200)
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>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link:
https://lore.kernel.org/r/630ee35241dc753a30b69adedc2ffa8fc6d551dd.1694613528.git.geert@linux-m68k.org
arch/m68k/hp300/time.c
patch
|
blob
|
history
diff --git
a/arch/m68k/hp300/time.c
b/arch/m68k/hp300/time.c
index 1d1b7b3b5dd415834cecc8c63602a1dc2aec8f7e..72621fb9f3e663bdc4f8bf877153bffaf04407da 100644
(file)
--- 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 = {