From patchwork Mon Jan 25 15:03:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101136 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1410996lbb; Mon, 25 Jan 2016 07:06:25 -0800 (PST) X-Received: by 10.66.218.225 with SMTP id pj1mr25925745pac.40.1453734385617; Mon, 25 Jan 2016 07:06:25 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si34190086pat.170.2016.01.25.07.06.25; Mon, 25 Jan 2016 07:06:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-fbdev-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 linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932224AbcAYPGY (ORCPT + 2 others); Mon, 25 Jan 2016 10:06:24 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:52100 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932217AbcAYPGY (ORCPT ); Mon, 25 Jan 2016 10:06:24 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0Mch4z-1aff482DwH-00Hwja; Mon, 25 Jan 2016 16:03:25 +0100 From: Arnd Bergmann To: Tomi Valkeinen Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Jean-Christophe Plagniol-Villard , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fbdev: mmp: print IRQ resource using %pR format string Date: Mon, 25 Jan 2016 16:03:01 +0100 Message-Id: <1453734191-1958245-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:hX85fpdPnDWTGvsO8KFFx9OZtAnQS9cpbCwIki0b00MYAieJNsW kGnliXGLGy5ULjBnWarYivwL/dInvIJICB98E2PytI50Hl2URiFuq2o+SAESwTUmzmcnKOn +mvTxcxJk+32cX7D9dx8D495ZV04pEkMQkPbmuqu5+A0go3+pS8G1uDH+wC/mPE2m/JFMQh xNGb1JOM4UwgRsteNqaYA== X-UI-Out-Filterresults: notjunk:1; V01:K0:cuuZ4Aeici8=:gvihmtWyDzcC7KPnhd/zox eWtqWNEnsJzW0hVOgyimTqHRtpVZJ7N0MRz0I4gGV3u+UiO9XvRxCmd0rEaZ3knme6MovlxAs eXli792iags2vbl/1NJPt7Md51zajB3nw3XsyAg29+bXbJHl9F4Z459BRjjJLKJUBoctbfXvF HIZdtWi1NgmMBpnXE8UxUuGvceZe2rYF5EH5rukxh5KIdlgUKCSJ6sZMgWCTjpgDikxsyNOjt eT+pc4HL0dIK5hYb/ldq/gNY10c5XSMyAFyCtA57N4TRlX9Pe71QFZObTVYh/O+w+Af9UOi31 cq6x507mMAQXuI1piLEF+vht0WGrSTZmdiuxm9TTlFDVl0zgMBJcs5CJeqhS9q3ZogB7f5HeN ECjtqXBM41MtMeIXHedN0gTayt1y04L3Y4zLVMRyllbKJITTBCAtK4EBgp6r3Y7HvPFu1PR/R GwJ/99q9InIVtOvdclGhbRUoXnYJuf0sgwq0WeRwqWkZ27CFfyFNs6Boev+gPH3qzJEbMDCBv LQaGDgf3M5I/Z6OKejIids2QpCBE3PaazphjZHJJRRv/8PvraJM/PH9uHDu48NdOtNLnJ0Q4b 0GTfSg7w8yJAfx9r3C0G4a48riPgGYn/5oHtqtPcYHy4k5+ZjKfoDa0ay372ENNRBE2kQtsRH pykXj3zvtIxdL5lQ8ULs+PSBRZod31D26EzvugoIAE7ClUeHxTDpyPqkvtzKGt5cI/TE= Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org resource_size_t cannot be printed using the %x format string when we it is defined as u64: drivers/video/fbdev/mmp/hw/mmp_ctrl.c: In function 'mmphw_probe': drivers/video/fbdev/mmp/hw/mmp_ctrl.c:506:22: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=] dev_err(ctrl->dev, "%s: res %x - %x map failed\n", __func__, ^ drivers/video/fbdev/mmp/hw/mmp_ctrl.c:506:22: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=] This changes the format string to %pR, which is interpreted by the printk implementation to pretty-print a resource structure. Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c index de54a4748065..b6f83d5df9fd 100644 --- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c +++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c @@ -503,8 +503,7 @@ static int mmphw_probe(struct platform_device *pdev) ctrl->reg_base = devm_ioremap_nocache(ctrl->dev, res->start, resource_size(res)); if (ctrl->reg_base == NULL) { - dev_err(ctrl->dev, "%s: res %x - %x map failed\n", __func__, - res->start, res->end); + dev_err(ctrl->dev, "%s: res %pR map failed\n", __func__, res); ret = -ENOMEM; goto failed; }