Re: [PATCH] drm/vc4: fix build warning

From: Eric Anholt
Date: Thu Dec 24 2015 - 18:50:24 EST


Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx> writes:

> We were getting build warning:
>
> drivers/gpu/drm/vc4/vc4_validate.c: In function 'validate_gl_shader_rec':
> drivers/gpu/drm/vc4/vc4_validate.c:864:4:
> warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
> DRM_ERROR("BO offset overflow (%d + %d > %d)\n",
>
> vbo->base.size is size_t and for printing size_t we should be using %zu.
>
> Signed-off-by: Sudip Mukherjee <sudip@xxxxxxxxxxxxxxx>

Reviewed-by: Eric Anholt <eric@xxxxxxxxxx>

and I've pulled it for the next round of fixes.

Attachment: signature.asc
Description: PGP signature