From patchwork Tue Mar 15 10:03:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102572 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp558167lbc; Tue, 15 Mar 2016 03:04:26 -0700 (PDT) X-Received: by 10.66.157.161 with SMTP id wn1mr45160255pab.146.1458036266720; Tue, 15 Mar 2016 03:04:26 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si3813998pfa.9.2016.03.15.03.04.26; Tue, 15 Mar 2016 03:04:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965472AbcCOKES (ORCPT + 4 others); Tue, 15 Mar 2016 06:04:18 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:49745 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964916AbcCOKEO (ORCPT ); Tue, 15 Mar 2016 06:04:14 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue005) with ESMTPA (Nemesis) id 0MeOaJ-1aSkM20ohj-00QD0Q; Tue, 15 Mar 2016 11:04:01 +0100 From: Arnd Bergmann To: "David S . Miller" Cc: Marcin Wojtas , Evan Wang , Gregory CLEMENT , netdev@vger.kernel.org, Arnd Bergmann , Thomas Petazzoni , Nicolas Schichan , linux-kernel@vger.kernel.org Subject: [PATCH] bus: mvebu-mbus: use %pad to print phys_addr_t Date: Tue, 15 Mar 2016 11:03:39 +0100 Message-Id: <1458036233-2770406-1-git-send-email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@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org A recent change to the mbus driver added a warning printk that prints a phys_addr_t using the %x format string, which fails in case we build with 64-bit phys_addr_t: drivers/bus/mvebu-mbus.c: In function 'mvebu_mbus_get_dram_win_info': drivers/bus/mvebu-mbus.c:975:9: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'phys_addr_t {aka long long unsigned int}' [-Werror=format=] This uses the special %pa format string instead, so we always print the correct type. Signed-off-by: Arnd Bergmann Fixes: f2900acea801 ("bus: mvebu-mbus: provide api for obtaining IO and DRAM window information") --- The warning was introduced in today's linux-next through the net-next tree, please apply this fixup on top. drivers/bus/mvebu-mbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index c2e52864bb03..ce54a0160faa 100644 --- a/drivers/bus/mvebu-mbus.c +++ b/drivers/bus/mvebu-mbus.c @@ -972,7 +972,7 @@ int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr) } } - pr_err("invalid dram address 0x%x\n", phyaddr); + pr_err("invalid dram address %pa\n", &phyaddr); return -EINVAL; } EXPORT_SYMBOL_GPL(mvebu_mbus_get_dram_win_info);