diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-15 11:09:50 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-15 11:09:50 +0100 |
commit | 73f8d938474d04013d785f5918d75b9d82c80ca3 (patch) | |
tree | c6ddedad00d35feb387e681bd2666504ea7d9a36 /c/src/lib/libbsp/powerpc/psim | |
parent | score: Fix warning (diff) | |
download | rtems-73f8d938474d04013d785f5918d75b9d82c80ca3.tar.bz2 |
bsps/powerpc: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim')
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/network/if_sim.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/network/if_sim.c b/c/src/lib/libbsp/powerpc/psim/network/if_sim.c index 4314aad655..240bf05e67 100644 --- a/c/src/lib/libbsp/powerpc/psim/network/if_sim.c +++ b/c/src/lib/libbsp/powerpc/psim/network/if_sim.c @@ -107,16 +107,16 @@ struct ifsim_softc theIfSims[IFSIM_SLOTS] = {{{{0}}} }; rtems_id ifsim_tid = 0; -__inline__ uint32_t +static __inline__ uint32_t ifsim_in(struct ifsim_softc *sc, unsigned regno) { - return in_be32( sc->pvt.base + regno ); + return in_be32((volatile uint32_t *) (sc->pvt.base + regno)); } -__inline__ void +static __inline__ void ifsim_out(struct ifsim_softc *sc, unsigned regno, uint32_t v) { - out_be32(sc->pvt.base + regno, v); + out_be32((volatile uint32_t *) (sc->pvt.base + regno), v); } static void * @@ -378,7 +378,7 @@ rtems_event_set evs; if ( crc_len && (memcpy(&crc_net, (char*)eh + len, crc_len), (crc = (ether_crc32_le((uint8_t *)eh, len) ^ 0xffffffff)) != crc_net) ) { - printk("CSUM: me 0x%08X, them 0x%08x\n", crc, crc_net); + printk("CSUM: me 0x%08" PRIx32 ", them 0x%08" PRIx32 "\n", crc, crc_net); sc->pvt.rx_cserrs++; } else { |