[rtems commit] gen5200/include/tm27.h: Fix warnings

Joel Sherrill joel at rtems.org
Thu Aug 30 13:39:24 UTC 2018


Module:    rtems
Branch:    master
Commit:    126a4544cc042f29555570abb5164e33345b3f8c
Changeset: http://git.rtems.org/rtems/commit/?id=126a4544cc042f29555570abb5164e33345b3f8c

Author:    Joel Sherrill <joel at rtems.org>
Date:      Wed Aug 22 11:57:57 2018 -0500

gen5200/include/tm27.h: Fix warnings

---

 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);
   }
 }
 



More information about the vc mailing list