summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-02-04 22:33:08 +0000
committerimp <imp@FreeBSD.org>2006-02-04 22:33:08 +0000
commit2b542ec878a4df14b98d9df1a8683a8130ee4c43 (patch)
treee89003509a72b36275ea0d7cbd9368252770dea3
parent3f00bfdb426034efb24ed123035f0e07f96ec22f (diff)
downloadFreeBSD-src-2b542ec878a4df14b98d9df1a8683a8130ee4c43.zip
FreeBSD-src-2b542ec878a4df14b98d9df1a8683a8130ee4c43.tar.gz
Type of overrun_buf doesn't matter to this code, but does to gcc.
Make it a void *.
-rw-r--r--sys/dev/advansys/adv_eisa.c4
-rw-r--r--sys/dev/advansys/adv_pci.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/advansys/adv_eisa.c b/sys/dev/advansys/adv_eisa.c
index 6d6fa70..7457a6b 100644
--- a/sys/dev/advansys/adv_eisa.c
+++ b/sys/dev/advansys/adv_eisa.c
@@ -75,7 +75,7 @@ __FBSDID("$FreeBSD$");
/*
* The overrun buffer shared amongst all EISA adapters.
*/
-static u_int8_t* overrun_buf;
+static void* overrun_buf;
static bus_dma_tag_t overrun_dmat;
static bus_dmamap_t overrun_dmamap;
static bus_addr_t overrun_physbase;
@@ -264,7 +264,7 @@ adv_eisa_attach(device_t dev)
goto bad;
}
if (bus_dmamem_alloc(overrun_dmat,
- (void **)&overrun_buf,
+ &overrun_buf,
BUS_DMA_NOWAIT,
&overrun_dmamap) != 0) {
bus_dma_tag_destroy(overrun_dmat);
diff --git a/sys/dev/advansys/adv_pci.c b/sys/dev/advansys/adv_pci.c
index 666efdc..9a0d9ec 100644
--- a/sys/dev/advansys/adv_pci.c
+++ b/sys/dev/advansys/adv_pci.c
@@ -96,7 +96,7 @@ static int adv_pci_attach(device_t);
/*
* The overrun buffer shared amongst all PCI adapters.
*/
-static u_int8_t* overrun_buf;
+static void* overrun_buf;
static bus_dma_tag_t overrun_dmat;
static bus_dmamap_t overrun_dmamap;
static bus_addr_t overrun_physbase;
@@ -237,7 +237,7 @@ adv_pci_attach(device_t dev)
return ENXIO;
}
if (bus_dmamem_alloc(overrun_dmat,
- (void **)&overrun_buf,
+ &overrun_buf,
BUS_DMA_NOWAIT,
&overrun_dmamap) != 0) {
bus_dma_tag_destroy(overrun_dmat);
OpenPOWER on IntegriCloud