* [SPARC64]: More SG build fixes
@ 2007-10-24 5:37 David Miller
2007-10-24 6:47 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: David Miller @ 2007-10-24 5:37 UTC (permalink / raw)
To: jens.axboe; +Cc: linux-kernel
diff --git a/arch/sparc64/kernel/ldc.c b/arch/sparc64/kernel/ldc.c
index c8313cb..217478a 100644
--- a/arch/sparc64/kernel/ldc.c
+++ b/arch/sparc64/kernel/ldc.c
@@ -2121,7 +2121,7 @@ int ldc_map_sg(struct ldc_channel *lp,
state.nc = 0;
for (i = 0; i < num_sg; i++)
- fill_cookies(&state, page_to_pfn(sg[i].page) << PAGE_SHIFT,
+ fill_cookies(&state, page_to_pfn(sg_page(&sg[i])) << PAGE_SHIFT,
sg[i].offset, sg[i].length);
return state.nc;
diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c
index 7276f7d..fac4c6c 100644
--- a/drivers/block/sunvdc.c
+++ b/drivers/block/sunvdc.c
@@ -15,6 +15,7 @@
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/list.h>
+#include <linux/scatterlist.h>
#include <asm/vio.h>
#include <asm/ldc.h>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [SPARC64]: More SG build fixes
2007-10-24 5:37 [SPARC64]: More SG build fixes David Miller
@ 2007-10-24 6:47 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2007-10-24 6:47 UTC (permalink / raw)
To: David Miller; +Cc: linux-kernel
On Tue, Oct 23 2007, David Miller wrote:
>
> diff --git a/arch/sparc64/kernel/ldc.c b/arch/sparc64/kernel/ldc.c
> index c8313cb..217478a 100644
> --- a/arch/sparc64/kernel/ldc.c
> +++ b/arch/sparc64/kernel/ldc.c
> @@ -2121,7 +2121,7 @@ int ldc_map_sg(struct ldc_channel *lp,
> state.nc = 0;
>
> for (i = 0; i < num_sg; i++)
> - fill_cookies(&state, page_to_pfn(sg[i].page) << PAGE_SHIFT,
> + fill_cookies(&state, page_to_pfn(sg_page(&sg[i])) << PAGE_SHIFT,
> sg[i].offset, sg[i].length);
>
> return state.nc;
> diff --git a/drivers/block/sunvdc.c b/drivers/block/sunvdc.c
> index 7276f7d..fac4c6c 100644
> --- a/drivers/block/sunvdc.c
> +++ b/drivers/block/sunvdc.c
> @@ -15,6 +15,7 @@
> #include <linux/delay.h>
> #include <linux/init.h>
> #include <linux/list.h>
> +#include <linux/scatterlist.h>
>
> #include <asm/vio.h>
> #include <asm/ldc.h>
added
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-24 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 5:37 [SPARC64]: More SG build fixes David Miller
2007-10-24 6:47 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox