mirror of https://gitee.com/openkylin/linux.git
More SG build fixes
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
This commit is contained in:
parent
de58d94292
commit
d91c5e8839
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue