From patchwork Mon Jul 12 06:06:45 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: 472953 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2674677jao; Mon, 12 Jul 2021 00:11:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynpKVhpfS5QBIKtEgYZoX4gdKNKzV83cfEOdwNo7PtJp+bPJpofUdUttfatlibeW7InuJI X-Received: by 2002:a05:6e02:602:: with SMTP id t2mr12298356ils.118.1626073905480; Mon, 12 Jul 2021 00:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626073905; cv=none; d=google.com; s=arc-20160816; b=OsBnO3uEGdeYySQtF1dW+1u/r2WbR5dGQio6uXSxiEUYpaox5VVFG7kpJOMeaUtkQk c5A0enKlCl/eisuHbIB7oTG0r4UwFzaOCknkXa8WjidmvyaoOyn/ltCXVOuBoIE0stJI KFDlGumLgnj5jVo18yAZnTG82FVZj+nZSLZ1jhBAcLJElS8FAqUWMd9ib0gb6YkQlwB9 Dk37V/f4t16B2t6L/nXr2C6K/6vemAlNcBIZ8kxxdZi7nJp8r1fTMJO3vjYCJzeWPQIl B4mFE4bdEdb9vU81i0agbVXNXIYGFNtvmqoXWYAZsQVJJhyhsj+fGR5MS73+pmWndKz7 uacQ== 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=4g6eDmMnUrCy+Lyyef5qfgAb+ETIAfzCwt01X4cHJWM=; b=RhYMLWWuNE1t5mLwTixkRs2a4vBIfwlucdkTKkUAKUwTqqGPNqd5pf3RSg4EXWR7Ae i1yxr0eJwCkxdYk24hGHfb8E959aGFz0czBwffSxvXGJ+cRM4/gqKI3nmksTEMyinXyU UtCEz3geqSNkGZYZN3g+V2pLGD6kYB6V0wZkUpdPeK6+pXwiKb/XD1htLWQMDLo+MRir JboAzmx1MezQzplOovKOb0dqVSxuNbnY9r0AduoTLxOvwNj2veBSfXHFe7SQaijmjc1J Vo3plvQxZdDQC0afDlg3pPNf87Fkbn4P1AZXi9yOmRhKtBNpkPh63GerEEb6GhW5Y9TB a8Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u34ItzA8; 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 g12si16580694jas.65.2021.07.12.00.11.45; Mon, 12 Jul 2021 00:11:45 -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=u34ItzA8; 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 S242899AbhGLHNA (ORCPT + 12 others); Mon, 12 Jul 2021 03:13:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:45272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244385AbhGLHKp (ORCPT ); Mon, 12 Jul 2021 03:10:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 488EC60FF0; Mon, 12 Jul 2021 07:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626073676; bh=e84PWtKvoCNX6p7L4TdyopFXQ0wsnRv0+CAu2wwhLbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u34ItzA8j3W9Jk+E8ra2bCarbGLaiuATLyYU48f1XxZF76I/e/RQjvryFHhp6hMJE H0rpMbp4P1miLmpPdFdP72Z++BqWLSVujTdSUXCF3YSHuFJ0CygWvZOPeaN852yWuU v48jpAKV3hVfU/eBeAzQgOWKaPM5Frw38LPH4oWM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Borislav Petkov , Andrew Jeffery , Sasha Levin Subject: [PATCH 5.12 322/700] EDAC/aspeed: Use proper format string for printing resource Date: Mon, 12 Jul 2021 08:06:45 +0200 Message-Id: <20210712061010.637439574@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210712060924.797321836@linuxfoundation.org> References: <20210712060924.797321836@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 2e2f16d5cdb33e5f6fc53b7ad66c9f456d5f2950 ] On ARMv7, resource_size_t can be 64-bit, which breaks printing it as %x: drivers/edac/aspeed_edac.c: In function 'init_csrows': drivers/edac/aspeed_edac.c:257:28: error: format '%x' expects argument of \ type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long \ long unsigned int'} [-Werror=format=] 257 | dev_dbg(mci->pdev, "dt: /memory node resources: first page \ r.start=0x%x, resource_size=0x%x, PAGE_SHIFT macro=0x%x\n", Use the special %pR format string to pretty-print the entire resource instead. Fixes: edfc2d73ca45 ("EDAC/aspeed: Add support for AST2400 and AST2600") Signed-off-by: Arnd Bergmann Signed-off-by: Borislav Petkov Reviewed-by: Andrew Jeffery Link: https://lkml.kernel.org/r/20210421135500.3518661-1-arnd@kernel.org Signed-off-by: Sasha Levin --- drivers/edac/aspeed_edac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.30.2 diff --git a/drivers/edac/aspeed_edac.c b/drivers/edac/aspeed_edac.c index a46da56d6d54..6bd5f8815919 100644 --- a/drivers/edac/aspeed_edac.c +++ b/drivers/edac/aspeed_edac.c @@ -254,8 +254,8 @@ static int init_csrows(struct mem_ctl_info *mci) return rc; } - dev_dbg(mci->pdev, "dt: /memory node resources: first page r.start=0x%x, resource_size=0x%x, PAGE_SHIFT macro=0x%x\n", - r.start, resource_size(&r), PAGE_SHIFT); + dev_dbg(mci->pdev, "dt: /memory node resources: first page %pR, PAGE_SHIFT macro=0x%x\n", + &r, PAGE_SHIFT); csrow->first_page = r.start >> PAGE_SHIFT; nr_pages = resource_size(&r) >> PAGE_SHIFT;