[Intel-gfx] [PATCH i-g-t v1] tests/perf: Fix pointer length compilation errors on 32-bit systems
Robert Foss
robert.foss at collabora.com
Tue Dec 20 10:51:33 UTC 2016
On 2016-12-20 05:28 AM, Chris Wilson wrote:
> On Tue, Dec 20, 2016 at 12:48:38AM -0500, Robert Foss wrote:
>> Fix pointer length compilations errors on 32-bit systems.
>
> That's fine, but considering to_user_pointer() to wrap it up similarly
> to the unwrap on the kernel side (and for everyone ofc).
>
> static inline uint64_t to_user_pointer(void *ptr)
> {
> return (uint64_t)(uintptr_t)ptr;
> }
> -Chris
>
I'll resubmit a to_user_pointer version.
Thanks Chris!
More information about the Intel-gfx
mailing list