Skip to content
Snippets Groups Projects
Commit 65ba7add authored by Rob Herring's avatar Rob Herring Committed by Tom Rini
Browse files

time: add weak annotation to timer_read_counter declaration


A weak annotation is needed in order to prevent link errors when
get_ticks is overridden. This fixes sandbox build.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent efd9bb9c
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ unsigned long notrace timer_read_counter(void) ...@@ -37,7 +37,7 @@ unsigned long notrace timer_read_counter(void)
#endif #endif
} }
#else #else
extern unsigned long timer_read_counter(void); extern unsigned long __weak timer_read_counter(void);
#endif #endif
unsigned long long __weak notrace get_ticks(void) unsigned long long __weak notrace get_ticks(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment