summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-08-29 12:39:17 -0500
committerJoel Sherrill <joel@rtems.org>2018-08-29 12:52:11 -0500
commit5da159312cd7b011228ef9ba78464bd6f6c3cb4f (patch)
tree00a0dfbebb13db5eeb4f3339f33b674c4abdff41
parenta8d3f10f6fe8548bc75bc1747c51ee1774f9996a (diff)
downloadrtems-5da159312cd7b011228ef9ba78464bd6f6c3cb4f.tar.bz2
psim/include/tm27.h: Fix not a prototype warnings
-rw-r--r--bsps/powerpc/psim/include/tm27.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsps/powerpc/psim/include/tm27.h b/bsps/powerpc/psim/include/tm27.h
index 3a41283a13..8e20a3ebd1 100644
--- a/bsps/powerpc/psim/include/tm27.h
+++ b/bsps/powerpc/psim/include/tm27.h
@@ -25,19 +25,19 @@
#define MUST_WAIT_FOR_INTERRUPT 1
-void nullFunc() {}
+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};
-void Install_tm27_vector(void (*_handler)())
+RTEMS_INLINE_ROUTINE void Install_tm27_vector(void (*_handler)())
{
clockIrqData.hdl = _handler;
if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
- printk("Error installing clock interrupt handler!\n");
- rtems_fatal_error_occurred(1);
+ printk("Error installing clock interrupt handler!\n");
+ rtems_fatal_error_occurred(1);
}
}