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 E684DC77B7F for ; Fri, 19 May 2023 10:47:28 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CnPCxiHUIM7w4amypIGniGYv8d7HyHT0vYp9HKcWzSY=; b=npvN7lKen8+OCh 60rXureBeUyZmr/cesDTIVgsXE7O+bGU5Og7LdvVqHHxiuQ3LUVvp50NTfeSAYCPaID21MXuUV9uG sd0c73qCpMa/lRr27qKqvan8ejLNuL+VzL1rgSOjKmNUYDODKJNcfdA1mYG0JLIcFRjYwhij4Fk1Z 5141V/Ps12Gyy3RvslWWgrszwRnNOkVhGzS0xr0fa6aFpnr3BY2PP6JDVW5GgitptUD/KcwZGMEG6 gY+9/OIIGG0sslhIJsVBA75wZEsncbWqt2NzTBO5lgj4h0TVwA1Quyxw0YexmFmunGW472BkRpBO7 MYwl1TQvvv9XJBnAUq8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzxdZ-00FwaT-1U; Fri, 19 May 2023 10:47:05 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzxdW-00FwZg-0T for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 10:47:03 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 625BC6566E; Fri, 19 May 2023 10:47:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3826BC433EF; Fri, 19 May 2023 10:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684493220; bh=3uAm/2bTZUrc8KqR08kwNxSgWihTy05EukpcaIfjFMM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bgjfBjIC7ezr3/mytPB/hcFVAFsWXWGimWWRHYOc8y9UJfRzSF0MIHlsCpUlS9aAv lHkla7MKJ/gszsZ6Kzs/0mtE7y5kTVWyyIvjJzlAgYUuUlFKG4OV8yFu1H1hR752ae mVIOkTzRah10tytpYhhiW64ObtiNCTSPk6+v78VFO59bc0RBUIBqozAykMBDyF3IN8 1p23WzsyCZvwltt6n6OzxPt0h3V7Zo5VcMr+nLHxRbuKepeKXULgFWKDukq146yJNQ LxK0OVNRyrbcKtC4BVIJcjnxfIi1kLIgS4vgygdwclAeVYlaC6dimjX/330it1cdOh NVk2qtlGGxNjw== Date: Fri, 19 May 2023 16:16:56 +0530 From: Vinod Koul To: Arnd Bergmann Cc: Arnd Bergmann , 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 Message-ID: References: <20230517201951.619693-1-arnd@kernel.org> <2b7eef56-9409-46bd-bcf7-dea054adfccd@app.fastmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2b7eef56-9409-46bd-bcf7-dea054adfccd@app.fastmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_034702_224250_AE670347 X-CRM114-Status: GOOD ( 15.38 ) 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 18-05-23, 13:59, Arnd Bergmann wrote: > 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". Right, i indeed looked up wrong format -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel