On 08/11/2017 12:28, Petri Latvala wrote:
On Wed, Nov 08, 2017 at 12:06:53PM +0000, Tvrtko Ursulin wrote:
From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
Chris wanted to disable the warning here instead. Either way is fine
with me so
Reviewed-by: Petri Latvala <petri.latvala@xxxxxxxxx>
Thanks, I did not want to go into discussion of changing the build
environment for the entire project. Or even just this file, while just
getting rid build warnings.
Regards,
Tvrtko
---
benchmarks/gem_syslatency.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index e2b1f74a43f4..580edc5f5c72 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -206,7 +206,7 @@ static void *sys_thp_alloc(void *arg)
assert(ptr != MAP_FAILED);
madvise(ptr, sz, MADV_HUGEPAGE);
for (size_t page = 0; page < sz; page += PAGE_SIZE)
- *(volatile uint32_t *)(ptr + page) = 0;
+ *(volatile uint32_t *)((unsigned char *)ptr + page) = 0;
munmap(ptr, sz);
clock_gettime(CLOCK_MONOTONIC, &now);
--
2.14.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx