Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp338182pxy; Thu, 22 Apr 2021 03:23:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe6BIUb5Z5HynLEYId0mGBqVONiNa9A7Ac5PYHT5DwzXEOO1Q9G1emWFwYabPUotVnRe/b X-Received: by 2002:a17:90a:fb4c:: with SMTP id iq12mr3191154pjb.121.1619087009868; Thu, 22 Apr 2021 03:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619087009; cv=none; d=google.com; s=arc-20160816; b=Mh/ARxdIV3ul2iy+Vgfoo+CJU1z3pWhVhBcDKWMM5L7ZWzj3RBfu75+oJ7QN1d96rX eOc0rL1SquUvKCSwo1coIPAHb5RzV6zVVB7zWlXhgtPf7/sI0e7RXSz2AmolKXBBAcRG 8E1lAQZuf2d/xtCFrX1PdKOCrICODkRNubTHjRUPDk6bjs0Kh7L71YldPF9EfbQnms/R Unt6N7zN7QeB4/UQ3SxmTDOyhX0HC/nr5ceualJiIaBD5jpq7BRmfHInQS9Sbr+g+uUG d+GiZvnizyYZlHz0oAi50pnP/PvxsMlK9cL2HfKNa/70RFvqmVq0P2jK0QYaGECW/Xy8 i/1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=nOqyyzC8dY9Gh2eNf8o9zHgKWkLupM82KT2U6xpXmRE=; b=v7EviDAHs0FFmQ4apzdyfGoMOU3O3ianJ2dS5yeVx78GDTSIcpmOak3+Y9rbWGhP11 KeqaIl4nfhw78lqLRtPbciu4lG5BxoW/xmc6taThby1loJ0YJalFs3D8kFXFBESWtJ5g VTb3sT/XybbQ9FsJ5VaPUH80m7rcq9YjBkF6lH5YD3bhlAvwnccc84gbvrUqo7YcE3tZ HPwj0HSZv59Zyvuk2COP/kjfgSjeKhhV0pAgHruGZ+vDnsgy9prrVQ130WyxNGCvZdrK 5fZaCCDwyZ9yV/qtg2K449aK0zWwrN1KVkQ0WJVTLnB+Yi6Xl+NelXujKbfSolRyQpCF zdcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=qBkdpqyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si2689172pgu.586.2021.04.22.03.23.17; Thu, 22 Apr 2021 03:23:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=qBkdpqyH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235704AbhDVKXV (ORCPT + 99 others); Thu, 22 Apr 2021 06:23:21 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:60963 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbhDVKXU (ORCPT ); Thu, 22 Apr 2021 06:23:20 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13MAHWRH027557; Thu, 22 Apr 2021 12:22:25 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=nOqyyzC8dY9Gh2eNf8o9zHgKWkLupM82KT2U6xpXmRE=; b=qBkdpqyHuQR1GBXHq4bUrlfobitQXTehA7cF0RviqnenbqXVOPa2j93Blr+nlKRGLpSn SBrUdqS4eS4oxbSoU5pPakcrMQ4FFOhl3Atb6stIJebOwF8nFyF1XsoHEUIANfLhlHjj LZY5ZVvNHWSv0W+3d0TFHrOSTANxknR/acHyyfIMZmT3H4a0OdPFssEV5dcGnyOgBn4m Sz1a9RpU8vILDhDuJA/zSiB3WFz8k24RDhOjbFoNGHu0kGbe/2Z7zxTzh5d+9g2cP1b9 u8nUL0JrUgxtEWF1OJapN3hBYsbTgL1BnSkmkjT3jp1nbr0x0yIieDzJTAgAlm/MVrwr pQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 382fftfs3m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Apr 2021 12:22:25 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F1EB510002A; Thu, 22 Apr 2021 12:22:24 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C60B52C41FB; Thu, 22 Apr 2021 12:22:24 +0200 (CEST) Received: from lmecxl0889.lme.st.com (10.75.127.50) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Apr 2021 12:22:23 +0200 Subject: Re: [PATCH] remoteproc: stm32: fix phys_addr_t format string To: Arnd Bergmann , Ohad Ben-Cohen , "Bjorn Andersson" , Mathieu Poirier , Maxime Coquelin , Alexandre Torgue , Arnaud Pouliquen CC: Arnd Bergmann , , , , References: <20210421140053.3727528-1-arnd@kernel.org> From: Arnaud POULIQUEN Message-ID: <5c8724b8-ec88-de4d-26b9-b95620bff3d9@foss.st.com> Date: Thu, 22 Apr 2021 12:22:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210421140053.3727528-1-arnd@kernel.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-22_04:2021-04-21,2021-04-22 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Arnd, On 4/21/21 4:00 PM, Arnd Bergmann wrote: > 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 It seems that the 'S' has disappeared during the copy/past :) It's strange that no bot has made a report... Reviewed-by: Arnaud Pouliquen Thanks for the fix! Arnaud > --- > 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; > } >