]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/cma: Fix 64-bit size_t build warnings
authorMagnus Damm <damm+renesas@opensource.se>
Mon, 4 May 2015 14:16:19 +0000 (16:16 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Jun 2015 05:45:49 +0000 (07:45 +0200)
commit30c4cf3b53b4a09ca24603dd3c3119433e8ac9d5
treeede8221f8dabae2e329b802fbea4b3c9a86a3b54
parent712a0dd91c4a5936fa00a24fa4e0100f982ad516
drm/cma: Fix 64-bit size_t build warnings

Fix warnings related to size_t when building for 64-bit architectures:

drivers/gpu/drm/drm_gem_cma_helper.c: In function ‘drm_gem_cma_create’:
drivers/gpu/drm/drm_gem_cma_helper.c:114:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=]
    size);
    ^
drivers/gpu/drm/drm_gem_cma_helper.c: In function ‘drm_gem_cma_describe’:
drivers/gpu/drm/drm_gem_cma_helper.c:393:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ [-Wformat=]
    off, &cma_obj->paddr, cma_obj->vaddr, obj->size);

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_gem_cma_helper.c