[PATCH] Fix a compilation error on x86_64.

Francois Tigeot ftigeot at wolfpond.org
Sun Mar 6 00:44:24 PST 2011


bus_dma_tag_create() expects a bus_addr_t parameter for its lowaddr argument.
---
 sys/dev/sound/pci/hda/hdac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c
index ae48ca5..6defdb2 100644
--- a/sys/dev/sound/pci/hda/hdac.c
+++ b/sys/dev/sound/pci/hda/hdac.c
@@ -1408,7 +1408,7 @@ hdac_dma_alloc(struct hdac_softc *sc, struct hdac_dma *dma, bus_size_t size)
 {
 	bus_size_t roundsz;
 	int result;
-	int lowaddr;
+	bus_addr_t lowaddr;
 
 	roundsz = roundup2(size, HDAC_DMA_ALIGNMENT);
 	lowaddr = (sc->support_64bit) ? BUS_SPACE_MAXADDR :
-- 
1.7.3.4


--rwEMma7ioTxnRzrJ--





More information about the Bugs mailing list