Type of overrun_buf doesn't matter to this code, but does to gcc.
Make it a void *.
This commit is contained in:
parent
f6ffc14649
commit
53920ff8d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155319
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user