From patchwork Wed Apr 21 14:00:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12216181 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E688BC433B4 for ; Wed, 21 Apr 2021 14:01:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A451F6144B for ; Wed, 21 Apr 2021 14:01:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234640AbhDUOBd (ORCPT ); Wed, 21 Apr 2021 10:01:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:37190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234205AbhDUOBd (ORCPT ); Wed, 21 Apr 2021 10:01:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A979661439; Wed, 21 Apr 2021 14:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619013660; bh=29A7NdsSMfao/ozpDLRWzTLaOL+x/9sHr4gIsv0B3sE=; h=From:To:Cc:Subject:Date:From; b=BFT/Vgsc5U+2LDBEh9S2JL4tC/mPPkKi7Nx0UNKYzmmujuUeEwu7M/w7cpHoWAYGY wTDNRyCbL/Y/++Qmu7SrDWH3FmkVVK0AJ8HTyu82djzAcS/Dxr5YLYgFuL/0o5WXnA Ur3vLQdGVJsEryRNQZQ9vnbo6jOyjh1xNEBlOvAgDcDQqsgJyV1SwZeY7F724jJNX4 T7vO+Qn/Hv7bVAKmmgKAlR98YT6ssef/w1trMub+J/FDf56UvwifkRyr+pyPiMKiEs Mb3bTizsctlTSUhbcU9LMKupBGqXf95sV42iV/R/DQOWt/wTVDV3Abw2wFaqBf77GH I0yCM+0smte6A== From: Arnd Bergmann To: Ohad Ben-Cohen , Bjorn Andersson , Mathieu Poirier , Maxime Coquelin , Alexandre Torgue , Arnaud Pouliquen Cc: Arnd Bergmann , Arnaud Pouliquen , linux-remoteproc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] remoteproc: stm32: fix phys_addr_t format string Date: Wed, 21 Apr 2021 16:00:40 +0200 Message-Id: <20210421140053.3727528-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org From: Arnd Bergmann A phys_addr_t may be wider than an int or pointer: drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_da_to_pa': drivers/remoteproc/stm32_rproc.c:583:30: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Werror=format=] 583 | dev_dbg(dev, "da %llx to pa %#x\n", da, *pa); Print it by reference using the special %pap format string. Fixes: 8a471396d21c ("remoteproc: stm32: Move resource table setup to rproc_ops") igned-off-by: Arnd Bergmann Reviewed-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index 7353f9e7e7af..32595c950569 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -580,7 +580,7 @@ static int stm32_rproc_da_to_pa(struct rproc *rproc, continue; *pa = da - p_mem->dev_addr + p_mem->bus_addr; - dev_dbg(dev, "da %llx to pa %#x\n", da, *pa); + dev_dbg(dev, "da %llx to pa %pap\n", da, pa); return 0; }