diff options
| author | He Ying <[email protected]> | 2021-03-24 05:09:39 -0400 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-05-04 19:37:42 +1000 |
| commit | ce0091a0e06045e70c526c8735f8b866a85e0a45 (patch) | |
| tree | cdce4152f8e366565a0bdfeed890bf55562282fd /tools/perf/scripts/python | |
| parent | 9923a6dace1682518efe4aa872cc317fa43c2a55 (diff) | |
powerpc/time: Fix sparse warnings
We found these warnings in arch/powerpc/kernel/time.c as follows:
warning: symbol 'decrementer_max' was not declared. Should it be static?
warning: symbol 'rtc_lock' was not declared. Should it be static?
warning: symbol 'dtl_consumer' was not declared. Should it be static?
Declare 'decrementer_max' in powerpc asm/time.h.
Include linux/mc146818rtc.h in powerpc kernel/time.c where 'rtc_lock' is
declared. And remove duplicated declaration of 'rtc_lock' in powerpc
platforms/chrp/time.c because it has included linux/mc146818rtc.h.
Move 'dtl_consumer' definition after "include <asm/dtl.h>" because it is
declared there.
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: He Ying <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Reviewed-by: Alexandre Belloni <[email protected]>
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions