On Wed, Dec 21, 2016 at 05:15:09AM -0500, Robert Foss wrote: > Fix pointer length compilations errors on 32-bit systems. > > Signed-off-by: Robert Foss <robert.foss@xxxxxxxxxxxxx> > --- > tests/perf.c | 47 ++++++++++++++++++++++++++--------------------- > 1 file changed, 26 insertions(+), 21 deletions(-) > > diff --git a/tests/perf.c b/tests/perf.c > index 87df9f00..27681368 100644 > --- a/tests/perf.c > +++ b/tests/perf.c > @@ -205,6 +205,11 @@ static uint64_t timestamp_frequency = 12500000; > > static igt_render_copyfunc_t render_copy = NULL; > > +static inline uint64_t to_user_pointer(void *ptr) > +{ > + return (uint64_t)(uintptr_t)ptr; > +} Lgtm, I would plonk this in perhaps ioctl_wrappers.h or igt_core.h to ease future patches removing this double cast. Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx