Skip to content

Commit 4190137

Browse files
committed
ARM: ep93xx: fix missing-prototype warnings
ep93xx_clocksource_read() is only called from the file it is declared in, while ep93xx_timer_init() is declared in a header that is not included here. arch/arm/mach-ep93xx/timer-ep93xx.c:120:13: error: no previous prototype for 'ep93xx_timer_init' arch/arm/mach-ep93xx/timer-ep93xx.c:63:5: error: no previous prototype for 'ep93xx_clocksource_read' Fixes: 000bc17 ("ARM: ep93xx: switch to GENERIC_CLOCKEVENTS") Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Link: https://lore.kernel.org/r/20230516153109.514251-3-arnd@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 30955b4 commit 4190137

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/arm/mach-ep93xx/timer-ep93xx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/io.h>
1010
#include <asm/mach/time.h>
1111
#include "soc.h"
12+
#include "platform.h"
1213

1314
/*************************************************************************
1415
* Timer handling for EP93xx
@@ -60,7 +61,7 @@ static u64 notrace ep93xx_read_sched_clock(void)
6061
return ret;
6162
}
6263

63-
u64 ep93xx_clocksource_read(struct clocksource *c)
64+
static u64 ep93xx_clocksource_read(struct clocksource *c)
6465
{
6566
u64 ret;
6667

0 commit comments

Comments
 (0)