[PATCH] drm/vc4: fix warning in validate printf.

From: Dave Airlie
Date: Sun Jan 17 2016 - 18:11:06 EST


This just fixes a warning on 64-bit builds,

drivers/gpu/drm/vc4/vc4_validate.c: In function âvalidate_gl_shader_recâ:
drivers/gpu/drm/vc4/vc4_validate.c:864:12: warning: format â%dâ
expects argument of type âintâ, but argument 4 has type âsize_t {aka
long unsigned int}â [-Wformat=]

Reported-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>
---

Hi Linus, please apply direct, should be fine.

drivers/gpu/drm/vc4/vc4_validate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vc4/vc4_validate.c b/drivers/gpu/drm/vc4/vc4_validate.c
index 0fb5b99..e26d9f6 100644
--- a/drivers/gpu/drm/vc4/vc4_validate.c
+++ b/drivers/gpu/drm/vc4/vc4_validate.c
@@ -861,7 +861,7 @@ validate_gl_shader_rec(struct drm_device *dev,

if (vbo->base.size < offset ||
vbo->base.size - offset < attr_size) {
- DRM_ERROR("BO offset overflow (%d + %d > %d)\n",
+ DRM_ERROR("BO offset overflow (%d + %d > %zu)\n",
offset, attr_size, vbo->base.size);
return -EINVAL;
}
--
2.4.3