From patchwork Thu Jul 24 17:58:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 4619521 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E37F09F375 for ; Thu, 24 Jul 2014 18:36:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1268D201F7 for ; Thu, 24 Jul 2014 18:36:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 8B7FF201F2 for ; Thu, 24 Jul 2014 18:36:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A68516E72E; Thu, 24 Jul 2014 11:36:46 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by gabe.freedesktop.org (Postfix) with ESMTP id ACC926E2E0 for ; Thu, 24 Jul 2014 10:58:22 -0700 (PDT) Received: by mail-lb0-f170.google.com with SMTP id w7so2583943lbi.1 for ; Thu, 24 Jul 2014 10:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=zptrD7Xs1x+hSxzCHmE61t2LiGtcXPfGQGr7k5+PymI=; b=rvZBepYTHS7RqHGbvMOZ1cYgfSOOK0MaOjI1iJCPlATprSI1GW2+Qk5I8ExEeT2Rvz x8BYn8dvR6Tlx9gzIXfqf26EFChudwqie+/x9V7OZVZ39U5qgoR3/S+1aRLhRLONZkMA 8p7YF7CFxLIzsKjY6W6maOxG/QCspymZDr9pRdlfaJI+7TvnyB01Ln9tdIsfnTmZ22cU k+lNh1vG4YKJniIBlk8eHKAVf6Lk1x/tf1OtrHZiYNjNgZ6DD6QuTHZl65BWJ2S2Ds2c 1aFCi6z33iNIGBXjl+g0JO5ZBhVpmbBlyeJMmXORWB6bg0zyNHpZjn461PN4UQzRASdP dyMw== X-Received: by 10.152.44.129 with SMTP id e1mr11281143lam.91.1406224701371; Thu, 24 Jul 2014 10:58:21 -0700 (PDT) Received: from epsilon.local.ru ([37.29.115.164]) by mx.google.com with ESMTPSA id ol5sm11660658lbb.16.2014.07.24.10.58.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jul 2014 10:58:20 -0700 (PDT) From: matwey@sai.msu.ru To: airlied@linux.ie Subject: [PATCH] gpu: drm: omapdrm: Use %pad format for values of the dma_addr_t type Date: Thu, 24 Jul 2014 21:58:06 +0400 Message-Id: <1406224686-4857-1-git-send-email-matwey@sai.msu.ru> X-Mailer: git-send-email 1.8.1.4 X-Mailman-Approved-At: Thu, 24 Jul 2014 11:36:45 -0700 Cc: matwey.kornilov@gmail.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Matwey V. Kornilov" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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: "Matwey V. Kornilov" The format change is to fix the following compilation issue: ../drivers/gpu/drm/omapdrm/omap_plane.c: In function 'omap_plane_pre_apply': ../drivers/gpu/drm/omapdrm/omap_plane.c:145:2: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t' [-Werror=format=] DBG("%d,%d %08x %08x", info->pos_x, info->pos_y, ^ ../drivers/gpu/drm/omapdrm/omap_plane.c:145:2: error: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'dma_addr_t' [-Werror=format=] cc1: all warnings being treated as errors ../scripts/Makefile.build:273: recipe for target 'drivers/gpu/drm/omapdrm/omap_plane.o' failed Signed-off-by: Matwey V. Kornilov --- drivers/gpu/drm/omapdrm/omap_gem.c | 10 +++++----- drivers/gpu/drm/omapdrm/omap_plane.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index 95dbce2..44305c6 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c @@ -791,7 +791,7 @@ int omap_gem_get_paddr(struct drm_gem_object *obj, omap_obj->paddr = tiler_ssptr(block); omap_obj->block = block; - DBG("got paddr: %08x", omap_obj->paddr); + DBG("got paddr: %pad", &(omap_obj->paddr)); } omap_obj->paddr_cnt++; @@ -985,9 +985,9 @@ void omap_gem_describe(struct drm_gem_object *obj, struct seq_file *m) off = drm_vma_node_start(&obj->vma_node); - seq_printf(m, "%08x: %2d (%2d) %08llx %08Zx (%2d) %p %4d", + seq_printf(m, "%08x: %2d (%2d) %08llx %pad (%2d) %p %4d", omap_obj->flags, obj->name, obj->refcount.refcount.counter, - off, omap_obj->paddr, omap_obj->paddr_cnt, + off, &(omap_obj->paddr), omap_obj->paddr_cnt, omap_obj->vaddr, omap_obj->roll); if (omap_obj->flags & OMAP_BO_TILED) { @@ -1467,8 +1467,8 @@ void omap_gem_init(struct drm_device *dev) entry->paddr = tiler_ssptr(block); entry->block = block; - DBG("%d:%d: %dx%d: paddr=%08x stride=%d", i, j, w, h, - entry->paddr, + DBG("%d:%d: %dx%d: paddr=%pad stride=%d", i, j, w, h, + &(entry->paddr), usergart[i].stride_pfn << PAGE_SHIFT); } } diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index 3cf31ee..aaa9a2c 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c @@ -142,8 +142,8 @@ static void omap_plane_pre_apply(struct omap_drm_apply *apply) DBG("%dx%d -> %dx%d (%d)", info->width, info->height, info->out_width, info->out_height, info->screen_width); - DBG("%d,%d %08x %08x", info->pos_x, info->pos_y, - info->paddr, info->p_uv_addr); + DBG("%d,%d %pad %pad", info->pos_x, info->pos_y, + &(info->paddr), &(info->p_uv_addr)); /* TODO: */ ilace = false;