]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: make i915_stolen_to_physical() return phys_addr_t
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 26 Jan 2017 20:19:07 +0000 (18:19 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 27 Jan 2017 13:04:12 +0000 (11:04 -0200)
commit920bcd1820a6966b6224f62eadcb4e931bb72e8e
treefe825e994a8ba3c732243f6d03a94521ab3456c4
parent2eebe4f2d5f4c91edc37801d828ba29edfbc7722
drm/i915: make i915_stolen_to_physical() return phys_addr_t

The i915_stolen_to_physical() function has 'unsigned long' as its
return type but it returns the 'base' variable, which is of type
'u32'. The only place where this function is called assigns the
returned value to dev_priv->mm.stolen_base, which is of type
'phys_addr_t'. The return value is actually a physical address and
everything else in the stolen memory code seems to be using
phys_addr_t, so fix i915_stolen_to_physical() to use phys_addr_t.

v2: Add missing blank lines after declarations (Chris, checkpatch.pl).

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1485461947-16030-1-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/i915_gem_stolen.c