diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-01-14 08:22:11 -0500 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-01-15 14:04:27 -0500 |
commit | 2d7f3bdb2cf6656386cb9ca1b02dd6df66fb05e8 (patch) | |
tree | a47a9d845da78e7d4fede365fe6b42b75ff55011 /drivers/gpu | |
parent | b5e16987a09ef3e3215f0d14a0d99b4e83ab7e91 (diff) |
drm/i915: Pass the dma_addr_t array as const to rotate_pages()
rotate_pages() doesn't modify the passed in dma addresses, so make
them const.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1452777736-4909-4-git-send-email-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_gtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index d7f9ddd52840..7377b6725c33 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c | |||
@@ -3331,7 +3331,7 @@ i915_gem_obj_lookup_or_create_ggtt_vma(struct drm_i915_gem_object *obj, | |||
3331 | } | 3331 | } |
3332 | 3332 | ||
3333 | static struct scatterlist * | 3333 | static struct scatterlist * |
3334 | rotate_pages(dma_addr_t *in, unsigned int offset, | 3334 | rotate_pages(const dma_addr_t *in, unsigned int offset, |
3335 | unsigned int width, unsigned int height, | 3335 | unsigned int width, unsigned int height, |
3336 | struct sg_table *st, struct scatterlist *sg) | 3336 | struct sg_table *st, struct scatterlist *sg) |
3337 | { | 3337 | { |