Re: [PATCH] drm/i915: Fix pointer-to-int conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
> Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux