From patchwork Mon Jul 19 14:52:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 480010 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4279467jao; Mon, 19 Jul 2021 09:21:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW3hSlTcpq8mnKziX8sK4ynDGiNcorV1Gd8xlerr8pv8NIBZY+s0qCqnoRK5QroFVzGB0Q X-Received: by 2002:a50:d642:: with SMTP id c2mr34949625edj.22.1626711678931; Mon, 19 Jul 2021 09:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626711678; cv=none; d=google.com; s=arc-20160816; b=peOBvpnJbOGdusqynDIkIKLy1J7SBTCHTA8vO5So9lQMd6FsAZU6PmssHiB5GbeiPX JpAb+u67LdNwIatwU42RdH511G+p3gEiVb0sG+zAaml2XtmR8y+2NhqLtL9Nl/mablJi 6JaNGNPkbFXAtN4Gb+6l9q9vUu5ktWlGwWIhIBqUZzUcfHkoxYbZrTMTB7e6QE0y3Wa9 /4u1/gV0P81cOjfA5KOfhJYOp0hWzsr3ulO5wTPwVjbDRBMtqEwZGbin3wmtWHRUw1jR qQoM3leJDBcoiRsXwcY2tHc670w13F6sK4rc3Q1J0VR4XIuOGWCuGXhckMF1AQEbup0W Ig/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xULpZueRurQQWKlKN6LgTSvGGh+Z6Q4R/SLc5+8TYaU=; b=BOxd6tHBSktZjVhaGFefdQ5lD2P0iayOqhnytQNyRj5f5tM9ku0Z8tuXQU1WzgaCXO DGZcwzHs3kND5rU1HEauC6Or31xTzQHfxfT8Z+II1kg828rkVO3v9FD3uyKkqn+7NiW2 7oXs8a3UTH4kV5YRU4WUBXXtc309z/XEE0sRHMXlOAe9hSFH11bghK7mRti0qXGMf4aJ ur1I+AsG1etYKyGCslxLQMawg+D9SCau0UzqPJuIxpeSp0qneGUnc/pXG8pQ1OqnFrYw Itq/eVRgPKCVSb4j7LRMfPiy/nfX3OcPqDb/D8mLsl1F1Ge0z7BFLrfRe0AoEEmDITi1 Yu2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hU+G1ycx; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id la14si22045543ejc.142.2021.07.19.09.21.18; Mon, 19 Jul 2021 09:21:18 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=hU+G1ycx; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241446AbhGSPhq (ORCPT + 12 others); Mon, 19 Jul 2021 11:37:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:59808 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347299AbhGSPfG (ORCPT ); Mon, 19 Jul 2021 11:35:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2261E61464; Mon, 19 Jul 2021 16:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626711137; bh=6oussey0HRECi3hSQKZL9JXBsdu6U9bASLIFinatFVY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hU+G1ycxHXGSnU+xUoLUpg0b0XzItw2DDsCGbXJuBa082rGOWhCfMefYIc6a+gLkT 1JG3l8xGe0SVGPri9FQwoWGs1I9h5wWO9oEJWstIIVcuAMbzyH23Dv7MSC2KbJrpMt K7Mk3TRsBDvhnSptgEw5F/DfyVIbpKQDJVY0Rugs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnaud Pouliquen , Arnd Bergmann , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.13 208/351] remoteproc: stm32: fix phys_addr_t format string Date: Mon, 19 Jul 2021 16:52:34 +0200 Message-Id: <20210719144951.850159163@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144944.537151528@linuxfoundation.org> References: <20210719144944.537151528@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 3e25e407a1c93b53a87a7743ea0cd4703d3985b7 ] 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. Reviewed-by: Arnaud Pouliquen Fixes: 8a471396d21c ("remoteproc: stm32: Move resource table setup to rproc_ops") Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20210421140053.3727528-1-arnd@kernel.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index 0e8203a432ab..b643efcf995a 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -576,7 +576,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; }