openrisc/time: Fix symbol scope warnings
authorStafford Horne <shorne@gmail.com>
Sat, 5 Feb 2022 22:45:59 +0000 (07:45 +0900)
committerStafford Horne <shorne@gmail.com>
Mon, 23 May 2022 08:15:49 +0000 (17:15 +0900)
commit5a344bbe88bf435bf40e22543b4595d6e6cb6556
treeff933b94d2716e8203d6b3a7d575a887c091dfaf
parent024b58f3d92de2d19e2222f841c103127ee54684
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>
arch/openrisc/kernel/time.c