1 From 32e0a9e2549c43d9abc03427ba6f3b7b8c2e1407 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Mon, 28 Jan 2019 14:40:16 +0000
4 Subject: [PATCH] gpu: vc4_firmware_kms: Fix up 64 bit compile
7 Resolve two build warnings with regard using incorrectly
8 sized parameters in logging messages on 64 bit builds.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
12 drivers/gpu/drm/vc4/vc4_firmware_kms.c | 11 ++++++-----
13 1 file changed, 6 insertions(+), 5 deletions(-)
15 --- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
16 +++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
17 @@ -160,14 +160,14 @@ static void vc4_primary_plane_atomic_upd
18 WARN_ON_ONCE(vc4_plane->pitch != fb->pitches[0]);
21 - DRM_DEBUG_ATOMIC("[PLANE:%d:%s] primary update %dx%d@%d +%d,%d 0x%08x/%d\n",
22 + DRM_DEBUG_ATOMIC("[PLANE:%d:%s] primary update %dx%d@%d +%d,%d 0x%pad/%d\n",
23 plane->base.id, plane->name,
29 - bo->paddr + fb->offsets[0],
33 ret = rpi_firmware_transaction(vc4->firmware,
34 @@ -197,6 +197,7 @@ static void vc4_cursor_plane_atomic_upda
35 struct drm_plane_state *state = plane->state;
36 struct drm_framebuffer *fb = state->fb;
37 struct drm_gem_cma_object *bo = drm_fb_cma_get_gem_obj(fb, 0);
38 + dma_addr_t addr = bo->paddr + fb->offsets[0];
40 u32 packet_state[] = {
41 state->crtc->state->active,
42 @@ -206,13 +207,13 @@ static void vc4_cursor_plane_atomic_upda
44 WARN_ON_ONCE(fb->pitches[0] != state->crtc_w * 4);
46 - DRM_DEBUG_ATOMIC("[PLANE:%d:%s] update %dx%d cursor at %d,%d (0x%08x/%d)",
47 + DRM_DEBUG_ATOMIC("[PLANE:%d:%s] update %dx%d cursor at %d,%d (0x%pad/%d)",
48 plane->base.id, plane->name,
53 - bo->paddr + fb->offsets[0],
57 /* add on the top/left offsets when overscan is active */
58 @@ -238,7 +239,7 @@ static void vc4_cursor_plane_atomic_upda
59 fb != old_state->fb) {
60 u32 packet_info[] = { state->crtc_w, state->crtc_h,
62 - bo->paddr + fb->offsets[0],
64 0, 0, /* hotx, hoty */};
66 ret = rpi_firmware_property(vc4->firmware,