More SG build fixes

Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
This commit is contained in:
David Miller 2007-10-24 08:46:01 +02:00 committed by Jens Axboe
parent de58d94292
commit d91c5e8839
2 changed files with 2 additions and 1 deletions

View 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;

View 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>