]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: Fix sparse warnings in from AGP kill code
authorBen Widawsky <ben@bwidawsk.net>
Tue, 6 Nov 2012 09:50:16 +0000 (09:50 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:45 +0000 (23:51 +0100)
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c

index afa56e978e8057333714a79a4ea100ef093d03e9..0aed724c7321628a46d734ae5abf5fec743b570e 100644 (file)
@@ -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++;
                }
        }