[PATCH 13/15] Clean up compiler warnings

Ric Claus claus at slac.stanford.edu
Tue Nov 27 03:26:51 UTC 2012


---
 c/src/lib/libcpu/powerpc/ppc403/clock/clock.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c
index e5c2b64..6ac56a4 100644
--- a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c
+++ b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c
@@ -77,7 +77,7 @@ static inline uint32_t get_itimer(void)
 /*
  *  ISR Handler
  */
-void Clock_isr(void* handle)
+static void Clock_isr(void* handle)
 {
   uint32_t clicks_til_next_interrupt;
 #if defined(BSP_PPC403_CLOCK_ISR_IRQ_LEVEL)
@@ -141,7 +141,7 @@ void Clock_isr(void* handle)
 #endif
 }
 
-int ClockIsOn(const rtems_irq_connect_data* unused)
+static int ClockIsOn(const rtems_irq_connect_data* unused)
 {
   register uint32_t tcr;
 
@@ -150,7 +150,7 @@ int ClockIsOn(const rtems_irq_connect_data* unused)
   return (tcr & 0x04000000) != 0;
 }
 
-void ClockOff(const rtems_irq_connect_data* unused)
+static void ClockOff(const rtems_irq_connect_data* unused)
 {
   register uint32_t tcr;
 
@@ -159,7 +159,7 @@ void ClockOff(const rtems_irq_connect_data* unused)
   __asm__ volatile ("mtspr 0x3da, %0" : "=r" ((tcr)) : "0" ((tcr))); /* TCR */
 }
 
-void ClockOn(const rtems_irq_connect_data* unused)
+static void ClockOn(const rtems_irq_connect_data* unused)
 {
   uint32_t          iocr;
   register uint32_t tcr;
-- 
1.7.1




More information about the devel mailing list