From patchwork Tue Aug 10 17:30:48 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: 494366 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp4186853jap; Tue, 10 Aug 2021 10:50:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLbKXMCXNKfMagdQCWayYxY1W2+migtZCoY6nELdZZpjWITuD4DPsSpLseMcp9Eb71MWxf X-Received: by 2002:a92:7f03:: with SMTP id a3mr73674ild.254.1628617857095; Tue, 10 Aug 2021 10:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617857; cv=none; d=google.com; s=arc-20160816; b=xuChZXnpllsLCTcvrbstkUD0EogoHy9/mavdg94TG/SyP/SoCvtCMocKvyd8AdZ1fm IM7WHwOpn/dbmMvCRNDcySeYv+Yg4PckyyPWUAZE8aOPhoeTcDe4HwJzuNcGxMniel/8 UpAsf/vCTigagnpZ4V0YUKpLLg7Rxn+JbxeIqc79y64SvkNppq/hMFOsakywv+PuORDl tzIjiALsTTO8iflBAqKtWPElvnQWuoBKSfItsQNFrI5Wul2T+Kolb1SyYHDoVAjNmoB0 Sw/7wIT4ZxwxnmoCpkxgYAxc7mXvFThplDxbFV1WeV98jwk7nRNvLXhjOSbI9Lylt5iN ixIQ== 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=yK0PzBwCUmZYMLXwWkQdJLSDzTIlnlHTzeJAa4c5vgc=; b=w8wj+3VRohGKJJBLSMArLBFBAPSmy1V1Cg9CW7GDXKXah3Z9+/W17sv1WtUdMX1Ygm M8Y7ys4kJJKZkkajp1KdmGHvciuFYzsOf7nvyHTqYu2QzIAJ7T0sifJDgLCjdRhyqBep 5PkTTdng7MQP/uLyZo05lwbhMZCpxJhkCl1BJsOao53TFzW9ZJzoXAHwdXSkQ2DprjPV lOu3d5uwYOVoDK59mkd4QH3NHP0KCPX0/Gk+T9/wjeh/5s+kLe5WiSWHnXIZRTfHMs8b ADA7nsCJDYc7ELtGwCj6TGP5GXRaAbWxIVIyRE2C1cgDKvyUN+uQqzNyyI9orNNia/7B bLFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jn0qbr0B; 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 f15si7440570ilu.156.2021.08.10.10.50.56; Tue, 10 Aug 2021 10:50:57 -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=jn0qbr0B; 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 S233878AbhHJRvK (ORCPT + 12 others); Tue, 10 Aug 2021 13:51:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:57234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236762AbhHJRtm (ORCPT ); Tue, 10 Aug 2021 13:49:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C91D461209; Tue, 10 Aug 2021 17:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617317; bh=Jha8fhg1mL/utIyZdziZC4Sv7ThFgnNodpeJY1iJvf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jn0qbr0BzXP62uyuitqQcGPt2pZY+kLueYztYUN33ESgcSHu8Vpflnf0E9aDwXJ/Y DtAwfpwN3ObYtFUDxqKy1I4BmD6CWf7xX0uCOkgNYZaVjojO8iuhmlJj0lZgupgOmV CuwL1+xjj4yc24qCCId7hSk+VAudlUGYxTj74f9s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 5.10 114/135] soc: ixp4xx: fix printing resources Date: Tue, 10 Aug 2021 19:30:48 +0200 Message-Id: <20210810172959.671094025@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@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 commit 8861452b2097bb0b5d0081a1c137fb3870b0a31f upstream. When compile-testing with 64-bit resource_size_t, gcc reports an invalid printk format string: In file included from include/linux/dma-mapping.h:7, from drivers/soc/ixp4xx/ixp4xx-npe.c:15: drivers/soc/ixp4xx/ixp4xx-npe.c: In function 'ixp4xx_npe_probe': drivers/soc/ixp4xx/ixp4xx-npe.c:694:18: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n", Use the special %pR format string to print the resources. Fixes: 0b458d7b10f8 ("soc: ixp4xx: npe: Pass addresses as resources") Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/soc/ixp4xx/ixp4xx-npe.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- a/drivers/soc/ixp4xx/ixp4xx-npe.c +++ b/drivers/soc/ixp4xx/ixp4xx-npe.c @@ -690,8 +690,8 @@ static int ixp4xx_npe_probe(struct platf if (!(ixp4xx_read_feature_bits() & (IXP4XX_FEATURE_RESET_NPEA << i))) { - dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n", - i, res->start, res->end); + dev_info(dev, "NPE%d at %pR not available\n", + i, res); continue; /* NPE already disabled or not present */ } npe->regs = devm_ioremap_resource(dev, res); @@ -699,13 +699,12 @@ static int ixp4xx_npe_probe(struct platf return PTR_ERR(npe->regs); if (npe_reset(npe)) { - dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n", - i, res->start, res->end); + dev_info(dev, "NPE%d at %pR does not reset\n", + i, res); continue; } npe->valid = 1; - dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n", - i, res->start, res->end); + dev_info(dev, "NPE%d at %pR registered\n", i, res); found++; }