summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_dpt.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2021-07-12 19:18:14 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-08-25 00:15:30 +0300
commit6b9376504cb486ffdf93ee1a98c5ce0d02699857 (patch)
tree39a6b04ea9fa2f74df8a99367ce72cb6cf579c05 /drivers/gpu/drm/i915/display/intel_dpt.c
parent705d4feeb269e22c4850ad66e2210b737b553236 (diff)
downloadlinux-6b9376504cb486ffdf93ee1a98c5ce0d02699857.tar.xz
drm/i915: Silence __iomem sparse warn
We don't care about __iomem mismatch when dealing with error pointers. Silence it with ERR_CAST(). drivers/gpu/drm/i915/display/intel_dpt.c:136:21: warning: incorrect type in assignment (different address spaces) drivers/gpu/drm/i915/display/intel_dpt.c:136:21: expected struct i915_vma *[assigned] vma drivers/gpu/drm/i915/display/intel_dpt.c:136:21: got void [noderef] __iomem *[assigned] iomem v2: The code moved into intel_dpt.c Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210712161815.24776-1-ville.syrjala@linux.intel.com Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dpt.c')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dpt.c b/drivers/gpu/drm/i915/display/intel_dpt.c
index 22acd945a9e4..de62bd77b15e 100644
--- a/drivers/gpu/drm/i915/display/intel_dpt.c
+++ b/drivers/gpu/drm/i915/display/intel_dpt.c
@@ -133,7 +133,7 @@ struct i915_vma *intel_dpt_pin(struct i915_address_space *vm)
iomem = i915_vma_pin_iomap(vma);
i915_vma_unpin(vma);
if (IS_ERR(iomem)) {
- vma = iomem;
+ vma = ERR_CAST(iomem);
goto err;
}