From patchwork Sun Sep 13 22:50:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 7171251 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 88628BF27D for ; Sun, 13 Sep 2015 22:51:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 99A382067D for ; Sun, 13 Sep 2015 22:51:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ADE4D20639 for ; Sun, 13 Sep 2015 22:51:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753134AbbIMWvU (ORCPT ); Sun, 13 Sep 2015 18:51:20 -0400 Received: from galahad.ideasonboard.com ([185.26.127.97]:52450 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752493AbbIMWvU (ORCPT ); Sun, 13 Sep 2015 18:51:20 -0400 Received: from avalon.pp.htv.fi (85-23-193-79.bb.dnainternet.fi [85.23.193.79]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 7BB9621C5D; Mon, 14 Sep 2015 00:49:01 +0200 (CEST) From: Laurent Pinchart To: dri-devel@lists.freedesktop.org Cc: linux-sh@vger.kernel.org Subject: [PATCH 12/22] drm: rcar-du: Fix compile warning on 64-bit platforms Date: Mon, 14 Sep 2015 01:50:59 +0300 Message-Id: <1442184669-30990-13-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1442184669-30990-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1442184669-30990-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Koji Matsuoka Use %tu instead of %u to print difference between pointers. Signed-off-by: Koji Matsuoka Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_plane.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_plane.c b/drivers/gpu/drm/rcar-du/rcar_du_plane.c index 4a38ced4b952..7d2e301df042 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_plane.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_plane.c @@ -153,7 +153,7 @@ int rcar_du_atomic_check_planes(struct drm_device *dev, plane = to_rcar_plane(state->planes[i]); plane_state = to_rcar_plane_state(state->plane_states[i]); - dev_dbg(rcdu->dev, "%s: checking plane (%u,%u)\n", __func__, + dev_dbg(rcdu->dev, "%s: checking plane (%u,%tu)\n", __func__, plane->group->index, plane - plane->group->planes); /* If the plane is being disabled we don't need to go through @@ -221,7 +221,7 @@ int rcar_du_atomic_check_planes(struct drm_device *dev, */ if (group_freed_planes[index] & (1 << i)) { dev_dbg(rcdu->dev, - "%s: plane (%u,%u) has been freed, skipping\n", + "%s: plane (%u,%tu) has been freed, skipping\n", __func__, plane->group->index, plane - plane->group->planes); continue; @@ -231,7 +231,7 @@ int rcar_du_atomic_check_planes(struct drm_device *dev, used_planes |= rcar_du_plane_hwmask(plane_state); dev_dbg(rcdu->dev, - "%s: plane (%u,%u) uses %u hwplanes (index %d)\n", + "%s: plane (%u,%tu) uses %u hwplanes (index %d)\n", __func__, plane->group->index, plane - plane->group->planes, plane_state->format ? @@ -260,7 +260,7 @@ int rcar_du_atomic_check_planes(struct drm_device *dev, plane = to_rcar_plane(state->planes[i]); plane_state = to_rcar_plane_state(state->plane_states[i]); - dev_dbg(rcdu->dev, "%s: allocating plane (%u,%u)\n", __func__, + dev_dbg(rcdu->dev, "%s: allocating plane (%u,%tu)\n", __func__, plane->group->index, plane - plane->group->planes); /* Skip planes that are being disabled or don't need to be