[PATCH 091/111] GRSPW_PKT: fix build warnings

Daniel Hellstrom daniel at gaisler.com
Thu Feb 26 16:39:33 UTC 2015


---
 c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h |    3 +++
 c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c     |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h
index 2cf70eb..10c10c5 100644
--- a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h
+++ b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h
@@ -551,6 +551,9 @@ extern void grspw_dma_config_read(void *c, struct grspw_dma_config *cfg);
 extern void grspw_dma_stats_read(void *c, struct grspw_dma_stats *sts);
 extern void grspw_dma_stats_clr(void *c);
 
+/* Register GRSPW packet driver to Driver Manager */
+void grspw2_register_drv (void);
+
 /*** GRSPW SpaceWire Packet List Handling Routines ***/
 
 static inline void grspw_list_clr(struct grspw_list *list)
diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c b/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
index 23d9d9c..41ca009 100644
--- a/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
+++ b/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
@@ -2434,7 +2434,7 @@ static void grspw_work_dma_func(struct grspw_dma_priv *dma)
 /* Work task is receiving work for the work message queue posted from
  * the ISR.
  */
-void grspw_work_func(rtems_task_argument unused)
+static void grspw_work_func(rtems_task_argument unused)
 {
 	rtems_status_code status;
 	unsigned int message;
-- 
1.7.0.4




More information about the devel mailing list