From patchwork Fri Aug 14 10:35:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 7014211 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 843039F344 for ; Fri, 14 Aug 2015 10:36:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0C7520778 for ; Fri, 14 Aug 2015 10:36:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id CB8772073C for ; Fri, 14 Aug 2015 10:36:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E6CE06E675; Fri, 14 Aug 2015 03:36:23 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1FF126E675; Fri, 14 Aug 2015 03:36:23 -0700 (PDT) Received: by pacgr6 with SMTP id gr6so57673895pac.2; Fri, 14 Aug 2015 03:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=XPwjSwXkaN7pRbCwHBMF1mZ0Kn2za320vZOUUxIgq1w=; b=t7a0DNI1YEEttrI2Ex+eShhz2SZlBpFkDD6AoBDt06t1McQXgdO1h3hMr3EH/9ZOS6 pJn6S0c5RqH1hQMdHNp0Z4nSM4MiBUIyUCCXqf/zHFe05MUy6qlV1TFXuHByL1f5pFDk 5Dbz9EXUsl+Z5ZUcj8rzG3P014/m+AxX/djSFe76NIAFm881Dhpp+XTCmljKbY1jZH/N TgwYqhZhnb1fATD+5gCTJmKfUiM8k1p4vxn/6c57juPLsOICPxdViLAHVJx0U1BzGtOp 6JvYVo/WBUgb0q/KxOciassNMXver6bH5PkisVmKZr/JWVexpADzk8XU+FXmFmA04Lco tQlg== X-Received: by 10.68.136.161 with SMTP id qb1mr87365364pbb.19.1439548582464; Fri, 14 Aug 2015 03:36:22 -0700 (PDT) Received: from localhost (port-20419.pppoe.wtnet.de. [46.59.141.105]) by smtp.gmail.com with ESMTPSA id bc10sm5568624pbd.14.2015.08.14.03.36.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 03:36:21 -0700 (PDT) From: Thierry Reding To: Daniel Vetter Date: Fri, 14 Aug 2015 12:35:23 +0200 Message-Id: <1439548523-15444-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.4.5 Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH] drm/i915: Fix build warning on 32-bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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: Thierry Reding The gtt.stolen_size field is of type size_t, and so should be printed using %zu to avoid build warnings on either 32-bit and 64-bit builds. Signed-off-by: Thierry Reding Reviewed-by: Paulo Zanoni --- drivers/gpu/drm/i915/i915_gem_stolen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index a36cb95ec798..f361c4a56995 100644 --- a/drivers/gpu/drm/i915/i915_gem_stolen.c +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c @@ -348,7 +348,7 @@ int i915_gem_init_stolen(struct drm_device *dev) * memory, so just consider the start. */ reserved_total = stolen_top - reserved_base; - DRM_DEBUG_KMS("Memory reserved for graphics device: %luK, usable: %luK\n", + DRM_DEBUG_KMS("Memory reserved for graphics device: %zuK, usable: %luK\n", dev_priv->gtt.stolen_size >> 10, (dev_priv->gtt.stolen_size - reserved_total) >> 10);