Re: [Intel-gfx] [PATCH i-g-t] tests/gem_softpin: Fix compiler warning on 32bit systems

2015-12-11 Thread Belgaumkar, Vinay
On Thu, Dec 10, 2015 at 04:43:29PM +, Tvrtko Ursulin wrote: > > Hi, > > On 10/12/15 14:58, Mika Kuoppala wrote: > >We get build error as we try to cast from ptr to integer > >of different size on 32 bit platforms. Use unsigned long > >as the cast, it will work with both 32 and 64 bit > >syste

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_softpin: Fix compiler warning on 32bit systems

2015-12-10 Thread Dave Gordon
On 10/12/15 16:43, Tvrtko Ursulin wrote: Hi, On 10/12/15 14:58, Mika Kuoppala wrote: We get build error as we try to cast from ptr to integer of different size on 32 bit platforms. Use unsigned long as the cast, it will work with both 32 and 64 bit systems. Cc: Vinay Belgaumkar Signed-off-by

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_softpin: Fix compiler warning on 32bit systems

2015-12-10 Thread Tvrtko Ursulin
Hi, On 10/12/15 14:58, Mika Kuoppala wrote: We get build error as we try to cast from ptr to integer of different size on 32 bit platforms. Use unsigned long as the cast, it will work with both 32 and 64 bit systems. Cc: Vinay Belgaumkar Signed-off-by: Mika Kuoppala --- tests/gem_softpin.c

[Intel-gfx] [PATCH i-g-t] tests/gem_softpin: Fix compiler warning on 32bit systems

2015-12-10 Thread Mika Kuoppala
We get build error as we try to cast from ptr to integer of different size on 32 bit platforms. Use unsigned long as the cast, it will work with both 32 and 64 bit systems. Cc: Vinay Belgaumkar Signed-off-by: Mika Kuoppala --- tests/gem_softpin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 d