Skip to content
  • Chris Wilson's avatar
    igt/gem_mmap_gtt: Silence compile warning for !sse4.1 · cddf9960
    Chris Wilson authored
    
    
    gem_mmap_gtt.c: In function ‘test_huge_copy’:
    gem_mmap_gtt.c:589:4: warning: passing argument 2 of ‘copy_wc_page’ from incompatible pointer type [enabled by default]
        copy_wc_page(page, a + PAGE_SIZE*i);
        ^
    gem_mmap_gtt.c:503:13: note: expected ‘const uint32_t *’ but argument is of type ‘char *’
     static void copy_wc_page(uint32_t *dst, const uint32_t *src)
                 ^
    gem_mmap_gtt.c:601:4: warning: passing argument 2 of ‘copy_wc_page’ from incompatible pointer type [enabled by default]
        copy_wc_page(page, b + PAGE_SIZE*i);
        ^
    gem_mmap_gtt.c:503:13: note: expected ‘const uint32_t *’ but argument is of type ‘char *’
     static void copy_wc_page(uint32_t *dst, const uint32_t *src)
    
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    cddf9960