[rtems commit] libcpu/arm/s3c24xx/clock/clockdrv.c: Fix warnings
Joel Sherrill
joel at rtems.org
Mon Oct 13 16:27:41 UTC 2014
Module: rtems
Branch: master
Commit: da71123605d0afd37138542ca2527fddf5529350
Changeset: http://git.rtems.org/rtems/commit/?id=da71123605d0afd37138542ca2527fddf5529350
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Sun Oct 12 15:37:33 2014 -0500
libcpu/arm/s3c24xx/clock/clockdrv.c: Fix warnings
---
c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c b/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c
index 4a32db7..519d3f8 100644
--- a/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c
+++ b/c/src/lib/libcpu/arm/s3c24xx/clock/clockdrv.c
@@ -1,9 +1,8 @@
/*
* S3C2400 clock specific using the System Timer
- *
- * This is hardware specific part of the clock driver. At the end of this
- * file, the generic part of the driver is #included.
- *
+ */
+
+/*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
@@ -31,7 +30,7 @@ rtems_irq_connect_data clock_isr_data = {
/**
* Return the nanoseconds since last tick
*/
-uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
+static uint32_t clock_driver_get_nanoseconds_since_last_tick(void)
{
return 0;
}
@@ -129,6 +128,7 @@ static void clock_isr_off(const rtems_irq_connect_data *unused)
*/
static int clock_isr_is_on(const rtems_irq_connect_data *irq)
{
+ return 1;
}
/* Make sure to include this, and only at the end of the file */
More information about the vc
mailing list