[rtems commit] LEON3: fix compiler warning in SHM driver

Joel Sherrill joel at rtems.org
Thu Feb 2 16:35:16 UTC 2012


Module:    rtems
Branch:    4.10
Commit:    954099e46235394bd52271f076c0507d1551d3ca
Changeset: http://git.rtems.org/rtems/commit/?id=954099e46235394bd52271f076c0507d1551d3ca

Author:    Daniel Hellstrom <daniel at gaisler.com>
Date:      Thu Feb  2 08:46:22 2012 -0600

LEON3: fix compiler warning in SHM driver

PR 2008/bsps

Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

---

 c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
index 2c9de4c..3711777 100644
--- a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
+++ b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
@@ -107,7 +107,7 @@ void Shm_Get_configuration(
 
   BSP_shm_cfgtbl.poll_intr    = INTR_MODE;
   BSP_shm_cfgtbl.Intr.address =
-     (vol_u32) &(LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index]);
+     (vol_u32 *) &(LEON3_IrqCtrl_Regs->force[LEON3_Cpu_Index]);
   BSP_shm_cfgtbl.Intr.value   = 1 << LEON3_MP_IRQ ;
   BSP_shm_cfgtbl.Intr.length  = 4;
 




More information about the vc mailing list