提交 c671e1e3 编写于 作者: D Dave Airlie 提交者: Linus Torvalds

drm/vc4: fix warning in validate printf.

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: NLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: NDave Airlie <airlied@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 98406505
...@@ -861,7 +861,7 @@ validate_gl_shader_rec(struct drm_device *dev, ...@@ -861,7 +861,7 @@ validate_gl_shader_rec(struct drm_device *dev,
if (vbo->base.size < offset || if (vbo->base.size < offset ||
vbo->base.size - offset < attr_size) { 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); offset, attr_size, vbo->base.size);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册