drm/i915: Replace __I915__ with typesafe variant
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Aug 2014 11:14:12 +0000 (12:14 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 13 Aug 2014 12:23:39 +0000 (14:23 +0200)
commit7312e2ddec1ffe4511a85a2814df44e79ded3c1d
tree60053a9aeb5b3a424c2a377b3c63a27d1d524069
parentdc41c154ffc30afb7ee7e891140dead26fce5c39
drm/i915: Replace __I915__ with typesafe variant

Ville pointed out the GCCism __builtin_types_compatible_p() that we
could use to replace our heavily casted presumption __I915__ macro that
was based on comparing struct sizes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h