Type of overrun_buf doesn't matter to this code, but does to gcc.

Make it a void *.
This commit is contained in:
Warner Losh 2006-02-04 22:33:08 +00:00
parent f6ffc14649
commit 53920ff8d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155319
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);