projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b604fa
)
powerpc: Add missing prototype for time_init()
author
Mathieu Malaterre
<malat@debian.org>
Sun, 25 Feb 2018 17:22:27 +0000
(18:22 +0100)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:50:36 +0000
(15:50 +1100)
The function time_init did not have a prototype defined in the time.h
header. Fix the following warning (treated as error in W=1):
arch/powerpc/kernel/time.c:1068:13: error: no previous prototype for ‘time_init’
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/time.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/include/asm/time.h
b/arch/powerpc/include/asm/time.h
index a7a8a9ac59913dc30d5fe1d8919b0abf65448c25..828ebe7ba7dc2cd6a006597c219b49785846db3b 100644
(file)
--- a/
arch/powerpc/include/asm/time.h
+++ b/
arch/powerpc/include/asm/time.h
@@
-205,6
+205,7
@@
struct cpu_usage {
DECLARE_PER_CPU(struct cpu_usage, cpu_usage_array);
extern void secondary_cpu_time_init(void);
+extern void __init time_init(void);
DECLARE_PER_CPU(u64, decrementers_next_tb);