[PATCH] scatterlist fallout: frv

Previous thread: 2.6.24-rc1 sysctl table check failed on PowerMac by Mikael Pettersson on Saturday, October 27, 2007 - 1:57 pm. (4 messages)

Next thread: [PATCH] ide/arm/icside: fallout from commit 86f3a492bb09eee5745b93af35f2212179c251fd by Al Viro on Saturday, October 27, 2007 - 2:39 pm. (2 messages)
To: Linus Torvalds <torvalds@...>
Cc: <dhowells@...>, <axboe@...>, <linux-kernel@...>
Date: Saturday, October 27, 2007 - 2:23 pm

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/arch/frv/mb93090-mb00/pci-dma.c b/arch/frv/mb93090-mb00/pci-dma.c
index 671ce1e..662f7b1 100644
--- a/arch/frv/mb93090-mb00/pci-dma.c
+++ b/arch/frv/mb93090-mb00/pci-dma.c
@@ -15,6 +15,7 @@
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/highmem.h>
+#include <linux/scatterlist.h>
#include <asm/io.h>

void *dma_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t gfp)
@@ -86,7 +87,7 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
dampr2 = __get_DAMPR(2);

for (i = 0; i < nents; i++) {
- vaddr = kmap_atomic(sg[i].page, __KM_CACHE);
+ vaddr = kmap_atomic(sg_page(&sg[i]), __KM_CACHE);

frv_dcache_writeback((unsigned long) vaddr,
(unsigned long) vaddr + PAGE_SIZE);
-

To: Al Viro <viro@...>
Cc: <dhowells@...>, Linus Torvalds <torvalds@...>, <axboe@...>, <linux-kernel@...>
Date: Monday, October 29, 2007 - 9:05 am

Yeah... I haven't got around to updating FRV yet after the last merge window.

Acked-by: David Howells <dhowells@redhat.com>
-

Previous thread: 2.6.24-rc1 sysctl table check failed on PowerMac by Mikael Pettersson on Saturday, October 27, 2007 - 1:57 pm. (4 messages)

Next thread: [PATCH] ide/arm/icside: fallout from commit 86f3a492bb09eee5745b93af35f2212179c251fd by Al Viro on Saturday, October 27, 2007 - 2:39 pm. (2 messages)