[rtems commit] bsps/riscv: Fix warnings

Sebastian Huber sebh at rtems.org
Tue Mar 27 11:08:29 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 27 13:07:57 2018 +0200

bsps/riscv: Fix warnings

---

 c/src/lib/libbsp/riscv/riscv_generic/console/console-io.c | 1 -
 c/src/lib/libbsp/riscv/riscv_generic/irq/irq.c            | 7 +------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/c/src/lib/libbsp/riscv/riscv_generic/console/console-io.c b/c/src/lib/libbsp/riscv/riscv_generic/console/console-io.c
index 8e03b99..ded68ef 100644
--- a/c/src/lib/libbsp/riscv/riscv_generic/console/console-io.c
+++ b/c/src/lib/libbsp/riscv/riscv_generic/console/console-io.c
@@ -124,7 +124,6 @@ void console_initialize_hardware(void)
 static void outbyte_console(char ch)
 {
   htif_console_putchar(ch);
-  return 0;
 }
 
 static char inbyte_console(void)
diff --git a/c/src/lib/libbsp/riscv/riscv_generic/irq/irq.c b/c/src/lib/libbsp/riscv/riscv_generic/irq/irq.c
index af6e08e..8090dce 100644
--- a/c/src/lib/libbsp/riscv/riscv_generic/irq/irq.c
+++ b/c/src/lib/libbsp/riscv/riscv_generic/irq/irq.c
@@ -48,18 +48,13 @@ void bsp_interrupt_handler_default(rtems_vector_number vector)
 
 rtems_status_code bsp_interrupt_facility_initialize()
 {
-  /* TODO */
-  return 0;
+  return RTEMS_NOT_IMPLEMENTED;
 }
 
 void bsp_interrupt_vector_enable(rtems_vector_number vector)
 {
-  /* TODO */
-  return 0;
 }
 
 void bsp_interrupt_vector_disable(rtems_vector_number vector)
 {
-  /* TODO */
-  return 0;
 }




More information about the vc mailing list