DragonFly BSD
DragonFly bugs List (threaded) for 2011-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[PATCH] Fix a compilation error on x86_64.


From: Francois Tigeot <ftigeot@xxxxxxxxxxxx>
Date: Sun, 6 Mar 2011 09:44:24 +0100

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--



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]