From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72228C7EE22 for ; Thu, 18 May 2023 12:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UtadvOCwWuL2yPxCFB3RzHHEXJSFRz2YlOWRVYcdCD4=; b=Pn2Jenf1IYHI30 68c+uAtBTKY8w6jCcnSxXsv+T7MEa4akSFdjc0x8eLJfpogFMzcABI9u1cmFhiBEL6KDo1tXiv0rC 1MBs832vH0n2yTm6/sjRj5ZdnqoXizixVRcJyJqxuoumBqWemikR36zJSHCOQ8m/1pYDoz4ozyvh9 EaTcrcC6sG7Zh1s1gCjghnJe8p7LsDxhoH6jfAEHl/EtpwDIgIrzLZ+Hkuk64XV6nBte/qzRlqoeD qt9P5cwZSXTsko2CIU/D3RxhBuobwS7kt/o+it/jWYZmleE50V+NFuMmHnTiI623QqtMGKK+X7f34 C7U19o5JSiPhxEQaCU8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzcIE-00CuKb-0g; Thu, 18 May 2023 11:59:38 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzcIA-00CuIt-2l for linux-arm-kernel@lists.infradead.org; Thu, 18 May 2023 11:59:36 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0B1BD5C0183; Thu, 18 May 2023 07:59:29 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 18 May 2023 07:59:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1684411169; x=1684497569; bh=j7 gx/xJWA0YhHeiCeJS3kGDMo9XKxha1/w1dZ8k7PYA=; b=W9wefS3Y0zTtpNrGfg Xgvs8Ja7T6vysCxzJPZ5gkky9EuKLTpkT/scvY+PWjJlOYekTvDx/oqsJJS11mmj xdOyb4SYwqQTQ8DIzj/PwHorRGqXeZc2Nlaxlh7jlGgdnInMYu+q2HDNEH6/q8RS aGlrLvQwMwNo87Q0dVEC/e9K5fEClQYdVh1G0WHxdHyCsJmlfISPVTUQlFfdj1P3 caLCZT9it01GogWNbUh2Sj9tvE6IB7J05qqFvhQBlyyxHKDVms7e/GCyYBqSxwi+ nLYMap584icp7vgNWD+x3yrRAZILGemqZlpFMCffevlF2y4rAUO7pg9s3JSzZsZq 9Maw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684411169; x=1684497569; bh=j7gx/xJWA0YhH eiCeJS3kGDMo9XKxha1/w1dZ8k7PYA=; b=StRuArfq4c8MlwrSj1wEqQT8XI/pS TiSQIPyCnQ1KSjhBlTxnqRheWwbTMuuIrPM/yoqlAlGqBMvsRVOTmZH8izwmpU1N WoZ1QpKrUBr3y7vIWs+4HQEiaTF7oJpXUd9DZ7vCy4sOfxwnsqOVEONu2PDw2Mr2 asnrEz9IsZ2vrJsUo/nWoPJMfqxq+RljAyFN59deL5THLDY5djjyAXpG4j81U0qV IT2mlsg4JirpxOUvztDPH8NEyweJU0CeQFFyfvWZhIPdNW6fQjZdbjCQ7s8X4ptg akVgelbJ4Dy2PjYxR3IEjqqP0I+voSzM6s51NVP9yjuZ1cSbkef2qAoCw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeifedggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepvefhffeltdegheeffffhtdegvdehjedtgfekueevgfduffettedtkeekueef hedunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6D646B60086; Thu, 18 May 2023 07:59:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-431-g1d6a3ebb56-fm-20230511.001-g1d6a3ebb Mime-Version: 1.0 Message-Id: <2b7eef56-9409-46bd-bcf7-dea054adfccd@app.fastmail.com> In-Reply-To: References: <20230517201951.619693-1-arnd@kernel.org> Date: Thu, 18 May 2023 13:59:08 +0200 From: "Arnd Bergmann" To: "Vinod Koul" , "Arnd Bergmann" Cc: "Linus Walleij" , "Julia Lawall" , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: ste_dma40: use proper format string for resource_size_t X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230518_045935_341645_7A82BECE X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, May 18, 2023, at 13:29, Vinod Koul wrote: > On 17-05-23, 22:19, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> When LPAE is set, both the dma_addr_t and resource_size_t become 64 bit >> wide, causing a warning about the format string: >> >> drivers/dma/ste_dma40.c: In function 'd40_probe': >> drivers/dma/ste_dma40.c:3539:23: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] >> 3539 | dev_info(dev, "found LCPA SRAM at 0x%08x, size 0x%08x\n", >> >> Change both to the special %pap and %pap helpers for these types. > > Already posted [1] and applied now > > [1]: https://lore.kernel.org/r/20230517064434.141091-1-vkoul@kernel.org I think yours is wrong: you use %pR with a resource_size_t, but it expects a "struct resource instead". Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel