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: 8109351 Return-Path: X-Original-To: patchwork-linux-fbdev@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 79D86BEEE5 for ; Mon, 25 Jan 2016 15:06:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 936272024D for ; Mon, 25 Jan 2016 15:06:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D077202A1 for ; Mon, 25 Jan 2016 15:06:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932224AbcAYPGY (ORCPT ); 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 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 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(-) 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; }