提交 ccdf56cd 编写于 作者: B Ben Widawsky 提交者: Daniel Vetter

drm/i915: Fix sparse warnings in from AGP kill code

Reported-by: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 44cbd338
......@@ -439,7 +439,7 @@ static void gen6_ggtt_bind_object(struct drm_i915_gem_object *obj,
len = sg_dma_len(sg) >> PAGE_SHIFT;
for (m = 0; m < len; m++) {
addr = sg_dma_address(sg) + (m << PAGE_SHIFT);
gtt_entries[i] = pte_encode(dev, addr, level);
iowrite32(pte_encode(dev, addr, level), &gtt_entries[i]);
i++;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册