scripts/getver.sh: avoid use of git rev-list --count
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0276-drm-vc4-fix-warning-in-validate-printf.patch
1 From 903b74d1a831985eced17d72de1634143031a077 Mon Sep 17 00:00:00 2001
2 From: Dave Airlie <airlied@redhat.com>
3 Date: Mon, 18 Jan 2016 09:10:42 +1000
4 Subject: [PATCH 276/381] drm/vc4: fix warning in validate printf.
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This just fixes a warning on 64-bit builds:
10
11 drivers/gpu/drm/vc4/vc4_validate.c: In function ‘validate_gl_shader_rec’:
12 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=]
13
14 Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
15 Signed-off-by: Dave Airlie <airlied@redhat.com>
16 Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
17 (cherry picked from commit c671e1e30259da587d7a0162895200601979ee65)
18 ---
19 drivers/gpu/drm/vc4/vc4_validate.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- a/drivers/gpu/drm/vc4/vc4_validate.c
23 +++ b/drivers/gpu/drm/vc4/vc4_validate.c
24 @@ -861,7 +861,7 @@ validate_gl_shader_rec(struct drm_device
25
26 if (vbo->base.size < offset ||
27 vbo->base.size - offset < attr_size) {
28 - DRM_ERROR("BO offset overflow (%d + %d > %d)\n",
29 + DRM_ERROR("BO offset overflow (%d + %d > %zu)\n",
30 offset, attr_size, vbo->base.size);
31 return -EINVAL;
32 }