linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] parisc: fix sg_page() fallout
@ 2007-10-23  6:00 FUJITA Tomonori
  2007-10-23  7:30 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: FUJITA Tomonori @ 2007-10-23  6:00 UTC (permalink / raw)
  To: jens.axboe; +Cc: torvalds, kyle, linux-kernel, tomof

arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_map_sg':
arch/parisc/kernel/pci-dma.c:487: error: 'struct scatterlist' has no member named 'page'
arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_unmap_sg':
arch/parisc/kernel/pci-dma.c:508: error: 'struct scatterlist' has no member named 'page'
arch/parisc/kernel/pci-dma.c:508: error: 'struct scatterlist' has no member named 'page'
arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_sync_sg_for_cpu':
arch/parisc/kernel/pci-dma.c:535: error: 'struct scatterlist' has no member named 'page'
arch/parisc/kernel/pci-dma.c:535: error: 'struct scatterlist' has no member named 'page'
arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_sync_sg_for_device':
arch/parisc/kernel/pci-dma.c:545: error: 'struct scatterlist' has no member named 'page'
arch/parisc/kernel/pci-dma.c:545: error: 'struct scatterlist' has no member named 'page'

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
 arch/parisc/kernel/pci-dma.c     |    1 +
 drivers/parisc/ccio-dma.c        |    1 +
 drivers/parisc/sba_iommu.c       |    1 +
 include/asm-parisc/scatterlist.h |    2 +-
 4 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/parisc/kernel/pci-dma.c b/arch/parisc/kernel/pci-dma.c
index 41f8e32..9448d4e 100644
--- a/arch/parisc/kernel/pci-dma.c
+++ b/arch/parisc/kernel/pci-dma.c
@@ -25,6 +25,7 @@
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/types.h>
+#include <linux/scatterlist.h>
 
 #include <asm/cacheflush.h>
 #include <asm/dma.h>    /* for DMA_CHUNK_SIZE */
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
index b3c4dbf..7c60cbd 100644
--- a/drivers/parisc/ccio-dma.c
+++ b/drivers/parisc/ccio-dma.c
@@ -42,6 +42,7 @@
 #include <linux/reboot.h>
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
+#include <linux/scatterlist.h>
 
 #include <asm/byteorder.h>
 #include <asm/cache.h>		/* for L1_CACHE_BYTES */
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c
index e5c3239..e527a0e 100644
--- a/drivers/parisc/sba_iommu.c
+++ b/drivers/parisc/sba_iommu.c
@@ -28,6 +28,7 @@
 #include <linux/mm.h>
 #include <linux/string.h>
 #include <linux/pci.h>
+#include <linux/scatterlist.h>
 
 #include <asm/byteorder.h>
 #include <asm/io.h>
diff --git a/include/asm-parisc/scatterlist.h b/include/asm-parisc/scatterlist.h
index cd3cfdf..62269b3 100644
--- a/include/asm-parisc/scatterlist.h
+++ b/include/asm-parisc/scatterlist.h
@@ -18,7 +18,7 @@ struct scatterlist {
 	__u32      iova_length; /* bytes mapped */
 };
 
-#define sg_virt_addr(sg) ((unsigned long)(page_address(sg->page) + sg->offset))
+#define sg_virt_addr(sg) ((unsigned long)sg_virt(sg))
 #define sg_dma_address(sg) ((sg)->iova)
 #define sg_dma_len(sg)     ((sg)->iova_length)
 
-- 
1.5.2.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] parisc: fix sg_page() fallout
  2007-10-23  6:00 [PATCH] parisc: fix sg_page() fallout FUJITA Tomonori
@ 2007-10-23  7:30 ` Jens Axboe
  2007-10-23 17:18   ` Kyle McMartin
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2007-10-23  7:30 UTC (permalink / raw)
  To: FUJITA Tomonori; +Cc: torvalds, kyle, linux-kernel, tomof

On Tue, Oct 23 2007, FUJITA Tomonori wrote:
> arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_map_sg':
> arch/parisc/kernel/pci-dma.c:487: error: 'struct scatterlist' has no member named 'page'
> arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_unmap_sg':
> arch/parisc/kernel/pci-dma.c:508: error: 'struct scatterlist' has no member named 'page'
> arch/parisc/kernel/pci-dma.c:508: error: 'struct scatterlist' has no member named 'page'
> arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_sync_sg_for_cpu':
> arch/parisc/kernel/pci-dma.c:535: error: 'struct scatterlist' has no member named 'page'
> arch/parisc/kernel/pci-dma.c:535: error: 'struct scatterlist' has no member named 'page'
> arch/parisc/kernel/pci-dma.c: In function 'pa11_dma_sync_sg_for_device':
> arch/parisc/kernel/pci-dma.c:545: error: 'struct scatterlist' has no member named 'page'
> arch/parisc/kernel/pci-dma.c:545: error: 'struct scatterlist' has no member named 'page'

Applied.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] parisc: fix sg_page() fallout
  2007-10-23  7:30 ` Jens Axboe
@ 2007-10-23 17:18   ` Kyle McMartin
  0 siblings, 0 replies; 3+ messages in thread
From: Kyle McMartin @ 2007-10-23 17:18 UTC (permalink / raw)
  To: Jens Axboe; +Cc: FUJITA Tomonori, torvalds, kyle, linux-kernel, tomof

On Tue, Oct 23, 2007 at 09:30:35AM +0200, Jens Axboe wrote:
> > arch/parisc/kernel/pci-dma.c:545: error: 'struct scatterlist' has no member named 'page'
> 
> Applied.
> 

Thanks!

Cheers,
	Kyle

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-23 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-23  6:00 [PATCH] parisc: fix sg_page() fallout FUJITA Tomonori
2007-10-23  7:30 ` Jens Axboe
2007-10-23 17:18   ` Kyle McMartin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).