[PATCH 33/42] sparc/shared: Fix warnings

Joel Sherrill joel.sherrill at oarcorp.com
Fri Oct 17 15:23:49 UTC 2014


---
 c/src/lib/libbsp/sparc/shared/1553/b1553brm_rasta.c    | 2 ++
 c/src/lib/libbsp/sparc/shared/can/grcan.c              | 7 +++++--
 c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_exit.c | 7 +++++--
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553brm_rasta.c b/c/src/lib/libbsp/sparc/shared/1553/b1553brm_rasta.c
index d1fa4d6..d15881e 100644
--- a/c/src/lib/libbsp/sparc/shared/1553/b1553brm_rasta.c
+++ b/c/src/lib/libbsp/sparc/shared/1553/b1553brm_rasta.c
@@ -74,6 +74,8 @@ void (*b1553brm_rasta_int_reg)(void *handler, int irq, void *arg) = 0;
 static void b1553brmrasta_interrupt_handler(int irq, void *arg);
 
 #include "b1553brm.c"
+#include <b1553brm_rasta.h>
+
 
 /*
  *
diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c
index 1fdd7e8..7833f8c 100644
--- a/c/src/lib/libbsp/sparc/shared/can/grcan.c
+++ b/c/src/lib/libbsp/sparc/shared/can/grcan.c
@@ -1,6 +1,8 @@
 /*
  *  GRCAN driver
- *
+ */
+
+/*
  *  COPYRIGHT (c) 2007.
  *  Gaisler Research.
  *
@@ -12,7 +14,6 @@
  *  2007-06-13, Daniel Hellstrom <daniel at gaisler.com>
  *    New driver in sparc shared directory. Parts taken
  *    from rasta grhcan driver.
- *
  */
 
 #include <bsp.h>
@@ -1791,6 +1792,8 @@ static int grcan_register_internal(void)
 }
 
 
+int grcan_register_abs(struct grcan_device_info *devices, int dev_cnt);
+
 /* Use custom addresses and IRQs to find hardware */
 int GRCAN_PREFIX(_register_abs)(struct grcan_device_info *devices, int dev_cnt)
 {
diff --git a/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_exit.c b/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_exit.c
index c7ba6c2..8b64125 100644
--- a/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_exit.c
+++ b/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_exit.c
@@ -2,7 +2,9 @@
  * @file
  * @ingroup sparc_bsp
  * @brief ERC32/LEON2/LEON3 BSP specific exit handler.
- *
+ */
+
+/*
  *  COPYRIGHT (c) 2014.
  *  Aeroflex Gaisler AB.
  *
@@ -11,7 +13,8 @@
  *  http://www.rtems.org/license/LICENSE.
  */
 
-#include <rtems.h>
+#include <bsp.h>
+#include <rtems/score/cpu.h>
 
 void BSP_fatal_exit(uint32_t error)
 {
-- 
1.9.3




More information about the devel mailing list