提交 d91c5e88 编写于 作者: D David Miller 提交者: Jens Axboe

More SG build fixes

Signed-off-by: NJens Axboe <axboe@carl.home.kernel.dk>
上级 de58d942
...@@ -2121,7 +2121,7 @@ int ldc_map_sg(struct ldc_channel *lp, ...@@ -2121,7 +2121,7 @@ int ldc_map_sg(struct ldc_channel *lp,
state.nc = 0; state.nc = 0;
for (i = 0; i < num_sg; i++) 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); sg[i].offset, sg[i].length);
return state.nc; return state.nc;
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/scatterlist.h>
#include <asm/vio.h> #include <asm/vio.h>
#include <asm/ldc.h> #include <asm/ldc.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册