powerpc/vio: More fallout from dma_mapping_error API change

Previous thread: powerpc: Add TIF_NOTIFY_RESUME support for tracehook by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:10 am. (1 message)

Next thread: powerpc: Make core id information available to userspace by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:10 am. (1 message)
From: Linux Kernel Mailing List
Date: Monday, July 28, 2008 - 10:10 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0764bf...
Commit:     0764bf63da5466474eebf7d21994cf6b106265a3
Parent:     c713e7cbfa529f87e18bb2eacb2ccdd4ee0ef7d3
Author:     Stephen Rothwell <sfr@canb.auug.org.au>
AuthorDate: Mon Jul 28 02:22:14 2008 +1000
Committer:  Benjamin Herrenschmidt <benh@kernel.crashing.org>
CommitDate: Mon Jul 28 16:30:51 2008 +1000

    powerpc/vio: More fallout from dma_mapping_error API change
    
    arch/powerpc/kernel/vio.c:533: error: too few arguments to function 'dma_mapping_error'
    
    Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 arch/powerpc/kernel/vio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c
index 6952384..22a3c33 100644
--- a/arch/powerpc/kernel/vio.c
+++ b/arch/powerpc/kernel/vio.c
@@ -530,7 +530,7 @@ static dma_addr_t vio_dma_iommu_map_single(struct device *dev, void *vaddr,
 	}
 
 	ret = dma_iommu_ops.map_single(dev, vaddr, size, direction, attrs);
-	if (unlikely(dma_mapping_error(ret))) {
+	if (unlikely(dma_mapping_error(dev, ret))) {
 		vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE));
 		atomic_inc(&viodev->cmo.allocs_failed);
 	}
--

Previous thread: powerpc: Add TIF_NOTIFY_RESUME support for tracehook by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:10 am. (1 message)

Next thread: powerpc: Make core id information available to userspace by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:10 am. (1 message)