Skip to content

Commit 5a344bb

Browse files
committed
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 <[email protected]>
1 parent 024b58f commit 5a344bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/openrisc/kernel/time.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/of_clk.h>
2424

2525
#include <asm/cpuinfo.h>
26+
#include <asm/time.h>
2627

2728
/* Test the timer ticks to count, used in sync routine */
2829
inline void openrisc_timer_set(unsigned long count)
@@ -61,7 +62,7 @@ static int openrisc_timer_set_next_event(unsigned long delta,
6162
* timers) we cannot enable the PERIODIC feature. The tick timer can run using
6263
* one-shot events, so no problem.
6364
*/
64-
DEFINE_PER_CPU(struct clock_event_device, clockevent_openrisc_timer);
65+
static DEFINE_PER_CPU(struct clock_event_device, clockevent_openrisc_timer);
6566

6667
void openrisc_clockevent_init(void)
6768
{

0 commit comments

Comments
 (0)