drm/vc4: fix warning in validate printf.
authorDave Airlie <airlied@redhat.com>
Sun, 17 Jan 2016 23:10:42 +0000 (09:10 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 18 Jan 2016 02:32:31 +0000 (18:32 -0800)
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@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/vc4/vc4_validate.c

index 0fb5b994b9ddb1e6fde3d8e99d727d3e7afc4d22..e26d9f6face3c498a4ddb5278e7d9f043cd2de2c 100644 (file)
@@ -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;
                }