[PATCH 01] LEON3: fix compiler warning in SHM driver

Gedare Bloom gedare at rtems.org
Thu Feb 2 15:35:41 UTC 2012


looks good.

On Thu, Feb 2, 2012 at 9:46 AM, Daniel Hellstrom <daniel at gaisler.com> wrote:
> 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 609c2b1..12f3380 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;
>
> --
> 1.7.0.4
>
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel




More information about the devel mailing list