OSDN Git Service

drm/i915: Silence __iomem sparse warn
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 12 Jul 2021 16:18:14 +0000 (19:18 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 24 Aug 2021 21:15:30 +0000 (00:15 +0300)
commit6b9376504cb486ffdf93ee1a98c5ce0d02699857
tree39a6b04ea9fa2f74df8a99367ce72cb6cf579c05
parent705d4feeb269e22c4850ad66e2210b737b553236
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>
drivers/gpu/drm/i915/display/intel_dpt.c