[Intel-gfx] [PATCH] drm/i915: fixup sparse warnings
Daniel Vetter
daniel at ffwll.ch
Mon Dec 3 22:35:51 CET 2012
On Mon, Dec 03, 2012 at 09:13:52PM +0000, Chris Wilson wrote:
> On Thu, 29 Nov 2012 22:18:51 +0100, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> > - __iomem where there is none (I love how we mix these things up).
> > - Use gfp_t instead of an other plain type.
> > - Unconfuse one place about enum pipe vs enum transcoder - for the pch
> > transcoder we actually use the pipe enum. Fixup the other cases
> > where we assign the pipe to the cpu transcoder with explicit casts.
> > - Declare the mch_lock properly in a header.
> >
> > There is still a decent mess in intel_bios.c about __iomem, but heck,
> > this is x86 and we're allowed to do that.
> >
> > Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
>
> Makes-sparse-happy: Chris Wilson <chris at chris-wilson.co.uk>
Thanks, applied, with the cast in i915_irq.c fixed, too.
>
> How about deciding whether it is '(cast) object' or '(cast)object' and
> be consistent.
Seems to be inconstent, randomly picked space.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
More information about the Intel-gfx
mailing list