From patchwork Wed May 17 06:44:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 13244264 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 7CF4EC77B7D for ; Wed, 17 May 2023 06:45:12 +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:MIME-Version:Message-Id:Date:Subject:Cc :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=GMS/NpWEsppyQ85GgDcA7dfnFdBtdJzc+VEDhXH5mW8=; b=x2J8p+7xutA42q ZQv9ZvvXptrfcMCOcKl8K//+vhRR3+g0LMoip2icBiit5WUaSjAaxf1PpmHEWEqgcNojeBbmvB4L4 Q+ZaYp7Zs/qx/lo/NFtsXcoDwuNK1xQN/zgiqDhxSPZDnSnh3DANFwY11XmgXQ2zYSF+n0LaViGm7 phgH8QdlaYCHho4dhfDbQ2ZEi9MgOu1OpqzfnGEgsiGc2Fv3B5QkDpqklfIFw+lypruG3RGnPD7Lj u9OEsYFQsiJzQr/tzSULu7WlHRkTaZtn8G9zm3MoewwaX9TB1r1nHgk3IXxLm+nGIq79VM2PrJCh/ 8eU6gbWx4tyrPxByCVtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzAu4-008WSm-2K; Wed, 17 May 2023 06:44:52 +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 1pzAu1-008WR9-2j for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2023 06:44:51 +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 0D87F615A7; Wed, 17 May 2023 06:44:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DA59C433EF; Wed, 17 May 2023 06:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684305887; bh=KCTC5QHFyubfdtA0DbLUsXoNLZpdpf2o3rF8b4RQnsE=; h=From:To:Cc:Subject:Date:From; b=CKJR27JxWqz2KCsXRCrqY6ws4/FdVLu9FeqVqIR6GyTDmfahGGNQQrJEgnoosroyX oSsAPSXl+OMBALnQ/WxakvWzOr0bzw8JkAundReOxkPaOCqFSWi/hUJ3Az5KfV1+7H X97VrYP0M7+vqXNHNWxF1z8k76yw0jUleQses/rkVw0gs0v7Ttk2QFjGGgJBSc+oHS H/L5VagyLOk5vSvVu7/8sedSpa5EWjS5EQsLWZtgk2MZ3sdVJafT3Vg0Lgrm7cs6kK BHDjzSmSaSsYO5KCnuJI813aFY34o/YtUKu9u0Rz0TlehWDyr/z/Cj8/DEMxq+ZnDh W+M3Akh2NaRtg== From: Vinod Koul To: dmaengine@vger.kernel.org, Linus Walleij Cc: Vinod Koul , linux-arm-kernel@lists.infradead.org, kernel test robot Subject: [PATCH 1/2] dmaengine: ste_dma40: use correct print specfier for resource_size_t Date: Wed, 17 May 2023 12:14:33 +0530 Message-Id: <20230517064434.141091-1-vkoul@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230516_234449_934198_D98990B5 X-CRM114-Status: GOOD ( 12.50 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We should use %pR for printing resource_size_t, so update that fixing the warning: drivers/dma/ste_dma40.c:3556:25: warning: format specifies type 'unsigned int' but the argument has type 'resource_size_t' (aka 'unsigned long long') [-Wformat] Reported-by: kernel test robot Fixes: 5a1a3b9c19dd ("dmaengine: ste_dma40: Get LCPA SRAM from SRAM node") Signed-off-by: Vinod Koul Reviewed-by: Linus Walleij Reviewed-by: Linus Walleij --- drivers/dma/ste_dma40.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index c30d00a78eed..56c839241a53 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3542,8 +3542,8 @@ static int __init d40_probe(struct platform_device *pdev) } base->lcpa_size = resource_size(&res_lcpa); base->phy_lcpa = res_lcpa.start; - dev_info(dev, "found LCPA SRAM at 0x%08x, size 0x%08x\n", - (u32)base->phy_lcpa, base->lcpa_size); + dev_info(dev, "found LCPA SRAM at 0x%08x, size %pR\n", + (u32)base->phy_lcpa, &base->lcpa_size); /* We make use of ESRAM memory for this. */ val = readl(base->virtbase + D40_DREG_LCPA);