projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd9bb9
)
time: add weak annotation to timer_read_counter declaration
author
Rob Herring
<rob.herring@calxeda.com>
Fri, 8 Nov 2013 14:40:43 +0000
(08:40 -0600)
committer
Tom Rini
<trini@ti.com>
Fri, 8 Nov 2013 20:25:14 +0000
(15:25 -0500)
A weak annotation is needed in order to prevent link errors when
get_ticks is overridden. This fixes sandbox build.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
lib/time.c
patch
|
blob
|
history
diff --git
a/lib/time.c
b/lib/time.c
index 8361ddd69b648e1874a8e41302717da7202cef7a..111b493a420d65c462e70747b5830aa51c45da0e 100644
(file)
--- a/
lib/time.c
+++ b/
lib/time.c
@@
-37,7
+37,7
@@
unsigned long notrace timer_read_counter(void)
#endif
}
#else
-extern unsigned long timer_read_counter(void);
+extern unsigned long
__weak
timer_read_counter(void);
#endif
unsigned long long __weak notrace get_ticks(void)