All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] time: add weak annotation to timer_read_counter declaration
@ 2013-11-08 14:40 Rob Herring
  2013-11-08 14:40 ` [U-Boot] [PATCH 2/2] sandbox: convert to common time functions Rob Herring
  2013-11-08 22:25 ` [U-Boot] [PATCH 1/2] time: add weak annotation to timer_read_counter declaration Tom Rini
  0 siblings, 2 replies; 7+ messages in thread
From: Rob Herring @ 2013-11-08 14:40 UTC (permalink / raw)
  To: u-boot

From: Rob Herring <rob.herring@calxeda.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/time.c b/lib/time.c
index 8361ddd..111b493 100644
--- 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)
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-08 22:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 14:40 [U-Boot] [PATCH 1/2] time: add weak annotation to timer_read_counter declaration Rob Herring
2013-11-08 14:40 ` [U-Boot] [PATCH 2/2] sandbox: convert to common time functions Rob Herring
2013-11-08 16:32   ` Simon Glass
2013-11-08 17:18     ` Rob Herring
2013-11-08 18:36       ` Simon Glass
2013-11-08 22:25   ` Tom Rini
2013-11-08 22:25 ` [U-Boot] [PATCH 1/2] time: add weak annotation to timer_read_counter declaration Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.