[Intel-gfx] [PATCH 1/2] drm/i915: Silence __iomem sparse warn
Matthew Auld
matthew.william.auld at gmail.com
Mon Jul 12 16:29:16 UTC 2021
On Mon, 12 Jul 2021 at 17:18, Ville Syrjala
<ville.syrjala at linux.intel.com> wrote:
>
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> We don't care about __iomem mismatch when dealing with error
> pointers. Silence it with ERR_CAST().
>
> drivers/gpu/drm/i915/display/intel_display.c:1896:21: expected struct i915_vma *[assigned] vma
> drivers/gpu/drm/i915/display/intel_display.c:1896:21: got void [noderef] __iomem *[assigned] iomem
> drivers/gpu/drm/i915/display/intel_display.c:1896:21: warning: incorrect type in assignment (different address spaces)
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
More information about the Intel-gfx
mailing list