]> err.no Git - linux-2.6/commitdiff
More SG build fixes
authorDavid Miller <davem@davemloft.net>
Wed, 24 Oct 2007 06:46:01 +0000 (08:46 +0200)
committerJens Axboe <axboe@carl.home.kernel.dk>
Wed, 24 Oct 2007 06:46:01 +0000 (08:46 +0200)
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
arch/sparc64/kernel/ldc.c
drivers/block/sunvdc.c

index c8313cb60f0a14562f3fd2714c0bfac1c5010bec..217478a94128783ae6055e689391dfb5d9919ee6 100644 (file)
@@ -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;
index 7276f7d207c2f3cfcfc3d036efce68a35ca84620..fac4c6cd04f78e2fac67fd0ac07ae811b5ce4fd0 100644 (file)
@@ -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>