]> git.baikalelectronics.ru Git - kernel.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)
commitddd7e7b31882fb8be51753130e64c8ee70710512
treefe825e994a8ba3c732243f6d03a94521ab3456c4
parent9994b853b1be8cc6d76511968f20f1ad0659a2f0
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