Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3761495pxt; Tue, 10 Aug 2021 10:42:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCdfdaWlVgYHdllM5uKgT3XzmbgYdAVt9l3TvmaF+Rb6QWpZSwmuzA3SgITZSZ1N4/2dDF X-Received: by 2002:a17:906:5d06:: with SMTP id g6mr28291149ejt.96.1628617355031; Tue, 10 Aug 2021 10:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617355; cv=none; d=google.com; s=arc-20160816; b=dTFiztUyZODYaKE+eM5IkNsIyhP5V+ea9vTRQQDaHsI1cYS9au0l9Nk9CLR2BT8/AC A7ijzevVUUGcL4LoGiiIrOaiNdJPmSTW8scZEXVNU/oK9VPfqhl2acIECocQh7ItVsYN yhmg2dHamVA0iyn0y05DL0Dd1q7usxnT0O9i5q7yVV+B4w0YU3eEw9pl6ySRC6VOXDkr y23JexA8SC9D3anZsfYwc8O/LBbAtB8YYs+BbWIVsHD6OQpeq12zeQ/y7iG/JMIQLteL 1dtGIiFbBHQ/lco/giDFdm/aGD+THKe29uSZekFjqWeQniS0bdL+YxLG0OddXFmBsQEt eHvg== 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=FibU20NDpMyz8ZVRInJWnFUTHidQ3GI31zNAEAY/6sqMph0jxcL20uTH6tzIbg+2nm Y9LtQWPOYscSpHNWVSDWMEbySEUiPmRgO0P0JCwiOYW0nWAwnIKmLk1axipeUOBj0K0L wjPfzAWgxmdNBgo/hRSBiyataTApM+MFyk5OjVPje5O/EJeLhWFoL/FQc6ln3TooR60N yPnIO/ncN9RTm+ne1zHljwOye5f34+LEeBiHxmZSJwKgJEsQtRxbIwCgaeHfXPWdh0Y1 R8PErCeJOTzHkvq1Xl47GaH3jO+aISoIlrwJtkHii9OqD+/6+q5dnmltEun0TZ7vykd3 4RdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0AN2tPJl; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs3si22148347ejc.368.2021.08.10.10.42.11; Tue, 10 Aug 2021 10:42:35 -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=@linuxfoundation.org header.s=korg header.b=0AN2tPJl; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233916AbhHJRlL (ORCPT + 99 others); Tue, 10 Aug 2021 13:41:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234639AbhHJRhj (ORCPT ); Tue, 10 Aug 2021 13:37:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5E0B60FC4; Tue, 10 Aug 2021 17:36:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616973; bh=Jha8fhg1mL/utIyZdziZC4Sv7ThFgnNodpeJY1iJvf4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0AN2tPJlZfc88fiJehEU5Q3BF7yO4yEiJYRVuWIwoG4jFagsgsshjsOAPVZJUgBdw McOOzJ4bm+KMtyMyRtkoIAcNL/BOXcqQBvdmjzxH8KmsDMUaY4PpNrads2P7yDJT0/ GPv+gzMSbZyccQ8+nWJLmCo9TyjZrxg3NmRi8/A0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 5.4 74/85] soc: ixp4xx: fix printing resources Date: Tue, 10 Aug 2021 19:30:47 +0200 Message-Id: <20210810172950.734146354@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172948.192298392@linuxfoundation.org> References: <20210810172948.192298392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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++; }