[PATCH 07/17] gen5200/include/tm27.h: Fix warnings

Joel Sherrill joel at rtems.org
Wed Aug 29 20:15:20 UTC 2018


---
 bsps/powerpc/gen5200/include/tm27.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/bsps/powerpc/gen5200/include/tm27.h b/bsps/powerpc/gen5200/include/tm27.h
index 583aaa4..bd3dbb2 100644
--- a/bsps/powerpc/gen5200/include/tm27.h
+++ b/bsps/powerpc/gen5200/include/tm27.h
@@ -26,19 +26,20 @@
 
 #define MUST_WAIT_FOR_INTERRUPT 1
 
-void nullFunc(void) {}
+static void nullFunc(void) {}
 
 static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
                                               0,
                                               (rtems_irq_enable) nullFunc,
                                               (rtems_irq_disable) nullFunc,
                                               (rtems_irq_is_enabled) nullFunc};
-static void Install_tm27_vector(void (*_handler)(void))
+
+RTEMS_INLINE_ROUTINE void Install_tm27_vector(void (*_handler)(void))
 {
   clockIrqData.hdl = _handler;
   if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
-        printk("Error installing clock interrupt handler!\n");
-        bsp_fatal(MPC5200_FATAL_TM27_IRQ_INSTALL);
+    printk("Error installing clock interrupt handler!\n");
+    bsp_fatal(MPC5200_FATAL_TM27_IRQ_INSTALL);
   }
 }
 
-- 
1.8.3.1




More information about the devel mailing list