[rtems commit] leon3/.../ckinit.c: Change get nanoseconds handler to static
Joel Sherrill
joel at rtems.org
Mon Sep 30 17:02:43 UTC 2013
Module: rtems
Branch: master
Commit: 876af7a1a02b52611e64a2b5fef9446f66b2b589
Changeset: http://git.rtems.org/rtems/commit/?id=876af7a1a02b52611e64a2b5fef9446f66b2b589
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Sep 23 08:16:55 2013 -0500
leon3/.../ckinit.c: Change get nanoseconds handler to static
---
c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
index 8aa0af3..e0556ba 100644
--- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
@@ -93,12 +93,7 @@ static int clkirq;
LEON3_Timer_Regs->timer[LEON3_CLOCK_INDEX].ctrl = 0; \
} while (0)
-/*
- * Prototype to avoid warnings and body of get nanoseconds since last tick
- */
-uint32_t bsp_clock_nanoseconds_since_last_tick(void);
-
-uint32_t bsp_clock_nanoseconds_since_last_tick(void)
+static uint32_t bsp_clock_nanoseconds_since_last_tick(void)
{
uint32_t clicks;
uint32_t usecs;
More information about the vc
mailing list