Message ID | 20180116074359.2861596-1-arnd@arndb.de |
---|---|
State | Accepted |
Commit | 82cea533aed44c1b8553fe782e1bc5e1262bd71a |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp926894lje; Mon, 15 Jan 2018 23:44:37 -0800 (PST) X-Google-Smtp-Source: ACJfBouC8adPWD/HDiJPjwl0pUDQURFxdNbrEsHvViFgMRr0QYfUhE3rkE65PyfD/9uEs6XfPnRk X-Received: by 10.98.194.8 with SMTP id l8mr18125560pfg.26.1516088676960; Mon, 15 Jan 2018 23:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516088676; cv=none; d=google.com; s=arc-20160816; b=YDoZUwrorbzv/FF7MwyIdAVwofZihf+l3vXQXabjpKCabyfdI3ngMImDBnyMUtxrn3 CbuLPYstFT+oZA9emN2xoivtW5MJHyiebs014Kzu0Swj6SNQfqjNu1NJ9KbMJ757omT6 QRBQbKdpsNE+wbGMRGcTcp33SmYXzAapzkU9AMtXfTo+Oy2MOXVpixO+dLfNM0lJ+d4A l8IyhZ2hK+gbhfGAloIKsNKYH3zb8Bl8QqjB8yOw8uhOkVnhayM3eiHTo+lQHJjQUq2v GqJPqnovCzJHM9QvEXf7v5Vu/MDZJKs4GLbjT3jg2tqDzrVinx9SnjwTNa0TmyBMCbTT cRRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=uhBZftcNTVNwg2W/6MpjPZp34lQRiHTQiF+yBxRf/A0=; b=KlSW1xNXyOLgx4CWdq79EgP6XvS2TD9j34ff4oe8yH22nO3+ndVGKPmqp90FkL9Vly qqvOamQi46sqwguDw1fopEQlxqpCoNjS0Shch0jkwW5u4sb1BzcVtDUyZ7PQ9PNgB2Ch b+uWDvl1zvW/c7z8wEFYgAtrVFZfMhSwaD6xUMlPJADFPbUh7gZb3fHJqPcrBVkzK4cX VEvbtFLjJlM0xWFihJIXA7hDwKxHdw/Z4rpooFiTDy7ZUDMo3j054QeSGcfERgcp6dlW 6HEqKGE4Nfy51jHwwBw0xTz8wOOzYNRSLRUoPHq/0HmN4Fmlhv0cpp42AkN93pIchMV+ f/cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=k2+z4jW3; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: <linux-mtd-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id o12si1375407plg.133.2018.01.15.23.44.36 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jan 2018 23:44:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=k2+z4jW3; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=uhBZftcNTVNwg2W/6MpjPZp34lQRiHTQiF+yBxRf/A0=; b=k2+ z4jW33oKmkts06dWBXP702mrtYUnpAHjnvHBBSjNlTyozWqYsICESmnhkmP4pEXbiQqaaHaMWtHXP W5p2SOCtwbYMZjXCc1OkTNHyjLb8cRZNsUhnpzhVzgd30tzg6nTciTdget6rB8LAGvdRD+CyjZtaQ t8rC8P51/41DNKnJbMbgdvBH5S36IFQsyJ9H2MEH9lqVxt+1mjqO7c3bvXArwKWtiunZJfpP0GnHR feYrYIaqsEqNxrGiqKLmZ3UX/09FNJBRPmlLQfJ0KwN7EXYHiia101c3l0iA1BGAaNsmfHevXvrx8 lnQi+wlKnfSdOTmvhBXdonHdiNAbLQw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ebLv3-0006Qf-9H; Tue, 16 Jan 2018 07:44:29 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebLuz-0006Bi-Td for linux-mtd@lists.infradead.org; Tue, 16 Jan 2018 07:44:27 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lby3Y-1fI4f70fnY-00jKTD; Tue, 16 Jan 2018 08:44:01 +0100 From: Arnd Bergmann <arnd@arndb.de> To: Kyungmin Park <kyungmin.park@samsung.com>, David Woodhouse <dwmw2@infradead.org>, Brian Norris <computersforpeace@gmail.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Marek Vasut <marek.vasut@gmail.com>, Richard Weinberger <richard@nod.at>, Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> Subject: [PATCH] mtd: onenand: omap2: print resource using %pR format string Date: Tue, 16 Jan 2018 08:43:40 +0100 Message-Id: <20180116074359.2861596-1-arnd@arndb.de> X-Mailer: git-send-email 2.9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: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180115_234426_314705_3187C70E X-CRM114-Status: GOOD ( 10.51 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.10 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.10 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Ladislav Michl <ladis@linux-mips.org>, Arnd Bergmann <arnd@arndb.de>, Sebastian Reichel <sre@kernel.org>, linux-kernel@vger.kernel.org, Peter Ujfalusi <peter.ujfalusi@ti.com>, linux-mtd@lists.infradead.org, Roger Quadros <rogerq@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org |
Series |
mtd: onenand: omap2: print resource using %pR format string
|
expand
|
diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index 2ce73fb6da1c..a4a2159bcfb7 100644 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c @@ -533,8 +533,7 @@ static int omap2_onenand_probe(struct platform_device *pdev) c->onenand.base = devm_ioremap_resource(dev, res); if (IS_ERR(c->onenand.base)) { - dev_err(dev, "Cannot reserve memory region at 0x%08x, size: 0x%x\n", - res->start, resource_size(res)); + dev_err(dev, "Cannot reserve memory region %pR\n", res); return PTR_ERR(c->onenand.base); }
The omap2 onenand driver is now available for compile-testing, which uncovers a warning in configurations that have a 64-bit resource_size_t: drivers/mtd/onenand/omap2.c: In function 'omap2_onenand_probe': drivers/mtd/onenand/omap2.c:536:54: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=] dev_err(dev, "Cannot reserve memory region at 0x%08x, size: 0x%x\n", drivers/mtd/onenand/omap2.c:536:66: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=] Changing the format string to the special %pR simplifies the code and lets it do the right thing in that configuration, while avoiding the warning. Fixes: a758f50f10cf ("mtd: onenand: omap2: Configure driver from DT") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/mtd/onenand/omap2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.9.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/