Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

openrisc/time: Fix symbol scope warnings

Spare reported the following warnings:
arch/openrisc/kernel/time.c:64:1: warning: symbol 'clockevent_openrisc_timer' was not declared. Should it be static?
arch/openrisc/kernel/time.c:66:6: warning: symbol 'openrisc_clockevent_init' was not declared. Should it be static?

This patch fixes by:

- Add static declaration to clockevent_openrisc_timer as it's used only in
this file.
- Add include for asm/time.h for openrisc_clockevent_init declaration.

Signed-off-by: Stafford Horne <shorne@gmail.com>

+2 -1
+2 -1
arch/openrisc/kernel/time.c
··· 23 23 #include <linux/of_clk.h> 24 24 25 25 #include <asm/cpuinfo.h> 26 + #include <asm/time.h> 26 27 27 28 /* Test the timer ticks to count, used in sync routine */ 28 29 inline void openrisc_timer_set(unsigned long count) ··· 62 61 * timers) we cannot enable the PERIODIC feature. The tick timer can run using 63 62 * one-shot events, so no problem. 64 63 */ 65 - DEFINE_PER_CPU(struct clock_event_device, clockevent_openrisc_timer); 64 + static DEFINE_PER_CPU(struct clock_event_device, clockevent_openrisc_timer); 66 65 67 66 void openrisc_clockevent_init(void) 68 67 {