[Intel-gfx] [PATCH] drm/i915: Fix pointer-to-int conversion
Chris Wilson
chris at chris-wilson.co.uk
Fri Oct 6 12:58:23 UTC 2017
Quoting Michal Wajdeczko (2017-10-06 13:36:56)
> Commit faf654864b25 ("drm/i915: Unify uC variable types to avoid
> flooding checkpatch.pl") breaks 32-bit kernel builds. Lets use
> chained cast to make compiler happy.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
i915_utils.h: static inline u64 ptr_to_u64(const void *ptr) { return (uinptr_t)ptr; }
Might as well try to hide the worst of C casting?
-Chris
More information about the Intel-gfx
mailing list