diff options
author | imp <imp@FreeBSD.org> | 2006-02-04 22:14:20 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-02-04 22:14:20 +0000 |
commit | df0be51131d51972ede5b6533ffdb2a34b41e593 (patch) | |
tree | 80a6c02717b67641e0876e4a8ed8c92b6e0e641d | |
parent | 5ca8d6a336d23bef65147481e8aa72ee6d1ef0ff (diff) | |
download | FreeBSD-src-df0be51131d51972ede5b6533ffdb2a34b41e593.zip FreeBSD-src-df0be51131d51972ede5b6533ffdb2a34b41e593.tar.gz |
Use void * for pointer rather than u_int8_t *, since it doesn't
matter. Well it does for type punning warnings.
-rw-r--r-- | sys/dev/amr/amr_pci.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/amr/amr_pci.c b/sys/dev/amr/amr_pci.c index 38567da..f873edf 100644 --- a/sys/dev/amr/amr_pci.c +++ b/sys/dev/amr/amr_pci.c @@ -481,7 +481,7 @@ amr_pci_intr(void *arg) static void amr_pci_free(struct amr_softc *sc) { - u_int8_t *p + void *p debug_called(1); @@ -500,8 +500,7 @@ amr_pci_free(struct amr_softc *sc) bus_dma_tag_destroy(sc->amr_sg_dmat); /* free and destroy DMA memory and tag for mailbox */ - /* XXX Brain damaged GCC Alert! */ - p = (u_int8_t *)(uintptr_t)(volatile void *)sc->amr_mailbox64; + p = (void *)(uintptr_t)(volatile void *)sc->amr_mailbox64; if (sc->amr_mailbox) { bus_dmamem_free(sc->amr_mailbox_dmat, p, sc->amr_mailbox_dmamap); } @@ -543,7 +542,7 @@ static int amr_sglist_map(struct amr_softc *sc) { size_t segsize; - u_int8_t *p; + void *p; int error; debug_called(1); @@ -630,7 +629,7 @@ static int amr_setup_mbox(struct amr_softc *sc) { int error; - u_int8_t *p; + void *p; debug_called(1); |