[Intel-gfx] [PATCH i-g-t v1] tests/perf: Fix pointer length compilation errors on 32-bit systems

Chris Wilson chris at chris-wilson.co.uk
Tue Dec 20 10:28:31 UTC 2016


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

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list