[rtems commit] Fixed virtex4,5 BSP compile time warnings
Sebastian Huber
sebh at rtems.org
Sat Jan 26 22:15:35 UTC 2013
Module: rtems
Branch: master
Commit: 967278fd958b3137aa988ac523631c8b06eeaa20
Changeset: http://git.rtems.org/rtems/commit/?id=967278fd958b3137aa988ac523631c8b06eeaa20
Author: Ric Claus <claus at slac.stanford.edu>
Date: Tue Jan 22 16:16:37 2013 -0800
Fixed virtex4,5 BSP compile time warnings
---
c/src/lib/libbsp/powerpc/virtex4/include/irq.h | 2 ++
c/src/lib/libbsp/powerpc/virtex4/irq/irq_init.c | 2 +-
.../lib/libbsp/powerpc/virtex4/startup/bspstart.c | 4 ++--
c/src/lib/libbsp/powerpc/virtex5/include/irq.h | 2 ++
c/src/lib/libbsp/powerpc/virtex5/irq/irq_init.c | 4 ++--
.../lib/libbsp/powerpc/virtex5/startup/bspstart.c | 4 ++--
6 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/virtex4/include/irq.h b/c/src/lib/libbsp/powerpc/virtex4/include/irq.h
index 50d3b4c..d5c2c5c 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/include/irq.h
+++ b/c/src/lib/libbsp/powerpc/virtex4/include/irq.h
@@ -67,6 +67,8 @@ extern "C" {
} rtems_irq_symbolic_name;
extern rtems_irq_connect_data *BSP_rtems_irq_tbl;
+ void BSP_irqexc_on_fnc(const rtems_irq_connect_data *conn_data);
+ void BSP_irqexc_off_fnc(const rtems_irq_connect_data *unused);
void BSP_rtems_irq_mngt_init(unsigned cpuId);
#ifdef __cplusplus
diff --git a/c/src/lib/libbsp/powerpc/virtex4/irq/irq_init.c b/c/src/lib/libbsp/powerpc/virtex4/irq/irq_init.c
index ba22c02..ce20ba9 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/irq/irq_init.c
+++ b/c/src/lib/libbsp/powerpc/virtex4/irq/irq_init.c
@@ -91,7 +91,7 @@ void BSP_irqexc_off_fnc(const rtems_irq_connect_data *unused)
/***********************************************************
* High level IRQ handler called from shared_raw_irq_code_entry
*/
-int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum)
+static int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum)
{
/*
* Handle interrupt
diff --git a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
index 73c2f84..6469979 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex4/startup/bspstart.c
@@ -139,7 +139,7 @@ void BSP_ask_for_reset(void)
void BSP_panic(char *s)
{
- rtems_interrupt_level level;
+ __attribute__((unused)) rtems_interrupt_level level;
rtems_interrupt_disable(level);
@@ -151,7 +151,7 @@ void BSP_panic(char *s)
void _BSP_Fatal_error(unsigned int v)
{
- rtems_interrupt_level level;
+ __attribute__((unused)) rtems_interrupt_level level;
rtems_interrupt_disable(level);
diff --git a/c/src/lib/libbsp/powerpc/virtex5/include/irq.h b/c/src/lib/libbsp/powerpc/virtex5/include/irq.h
index 3d34328..007e414 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/include/irq.h
+++ b/c/src/lib/libbsp/powerpc/virtex5/include/irq.h
@@ -67,6 +67,8 @@ extern "C" {
} rtems_irq_symbolic_name;
extern rtems_irq_connect_data *BSP_rtems_irq_tbl;
+ void BSP_irqexc_on_fnc(const rtems_irq_connect_data *conn_data);
+ void BSP_irqexc_off_fnc(const rtems_irq_connect_data *unused);
void BSP_rtems_irq_mngt_init(unsigned cpuId);
#define BSP_DEC BSP_PIT
diff --git a/c/src/lib/libbsp/powerpc/virtex5/irq/irq_init.c b/c/src/lib/libbsp/powerpc/virtex5/irq/irq_init.c
index 7096512..122a9e2 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/irq/irq_init.c
+++ b/c/src/lib/libbsp/powerpc/virtex5/irq/irq_init.c
@@ -90,7 +90,7 @@ void BSP_irqexc_off_fnc(const rtems_irq_connect_data *unused)
SPR_RW(BOOKE_TSR)
-int C_dispatch_dec_handler (BSP_Exception_frame *frame, unsigned int excNum)
+static int C_dispatch_dec_handler (BSP_Exception_frame *frame, unsigned int excNum)
{
/* Acknowledge the interrupt */
_write_BOOKE_TSR( BOOKE_TSR_DIS );
@@ -105,7 +105,7 @@ int C_dispatch_dec_handler (BSP_Exception_frame *frame, unsigned int excNum)
/***********************************************************
* High level IRQ handler called from shared_raw_irq_code_entry
*/
-int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum)
+static int C_dispatch_irq_handler (BSP_Exception_frame *frame, unsigned int excNum)
{
/*
* Handle interrupt
diff --git a/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
index 4aa89f7..a05016f 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex5/startup/bspstart.c
@@ -152,7 +152,7 @@ void BSP_ask_for_reset(void)
void BSP_panic(char *s)
{
- rtems_interrupt_level level;
+ __attribute__((unused)) rtems_interrupt_level level;
rtems_interrupt_disable(level);
@@ -164,7 +164,7 @@ void BSP_panic(char *s)
void _BSP_Fatal_error(unsigned int v)
{
- rtems_interrupt_level level;
+ __attribute__((unused)) rtems_interrupt_level level;
rtems_interrupt_disable(level);
More information about the vc
mailing list