From patchwork Thu Feb 23 07:01:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp175956wrd; Wed, 22 Feb 2023 23:12:52 -0800 (PST) X-Google-Smtp-Source: AK7set8Htqd6SH6wsteHoC1Rx05T6VY9Xm/CgT46EA8HM9ZtBpTsBWZkMmZYBJbGYk9qx50CrEO5 X-Received: by 2002:a17:902:d48d:b0:19a:a815:2853 with SMTP id c13-20020a170902d48d00b0019aa8152853mr12087694plg.1.1677136372669; Wed, 22 Feb 2023 23:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677136372; cv=none; d=google.com; s=arc-20160816; b=gvF/LPjNEiFS9eot1Vlydf4hPH0lzFJtIAj8qohhRAz5V2OXxCc9/xhar6POPgPJma 7Vrr9dzoC8hgnMBxUAYhLhyhT20oNeFlpTa/s7CFKnOJNbURgaefilGCNZNySB8w/OZx C14G+p6DpcJZ6LD4MRnjQS9R8YkjOmnf4nrLrwBO8yLwwiQtl9GM6kv5tQL2Hr3Vbz7t IYiuJX0tPGqLvPWNS/XRKaWiq2IHgKr0A7Zukftd2NJI5dFMyKZi6P+w8MgDC9IUWI2b 25AOORSyxl2CJbGI6+7ceOIarnDevxnFGqpArhxvD9Cn/FpbsyYOrmLiZiX9fWBIBvei wD4Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gOBRECxsXsY6lxgL+yYcrF7OI+VSzF/GHUkcveTa3Y4=; b=BwRM/P4A01/cpCNSa6eLwZwrP2peDPeGR12bjVoNaHYGjAsNSLSwG6InrF04aSEQzP KSRrlGFzj/ldp+BjN5HpBOba+rFcerxiOrLROPSgRycZoUKSjF4aMH4o574fJZvaSm2f LuMQLQIjZFpt/T2XQMoKoVMBOaEhdKhBSVsARJMrc7w3TGPTDIWb4rV7EE6fifvFXuXp E1RWLEucVVOgAlZcfjW/q82u7HVcc5oO5aK7TfqRMRlXcN+Exqe3FmUhCSAuZagYIbT3 BKqAAxRyvjS+VZ1VHYoxcFzjcZ9VnPLnHpXXHnH0lJkhpmU5gb1SrO84l6JtJ5LTDZT8 QAIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E0B4Od0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jh19-20020a170903329300b0019c9dec67d9si5452689plb.432.2023.02.22.23.12.39; Wed, 22 Feb 2023 23:12:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=E0B4Od0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233308AbjBWHBj (ORCPT + 99 others); Thu, 23 Feb 2023 02:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233463AbjBWHBX (ORCPT ); Thu, 23 Feb 2023 02:01:23 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977D24A1D2 for ; Wed, 22 Feb 2023 23:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=gOBRECxsXsY6lxgL+yYcrF7OI+VSzF/GHUkcveTa3Y4=; b=E0B4Od0+YUf0HMfrRW98qlx/Pm bb0bbRFi23gnlkWdNNS2iWUUGZDCUJmZihFuZAgTskDBIJs4+pbqICdR6W7CuIejiUX4LpfBs8ntm hnOQpJXi12b86slXUf3V4N6UpnD09KoKmzvmUYgN782NjTfa9wICrkCje6gA+Mwl+RCrJEPR3tcc0 oJkqTZxrilBCEj5gVaoYksy2v8eBTJsWptkjvwAdrvUAvKZQXQOqQCsm3bLVrrC7qdhYS2l8iS8TC on0CPSFOJRJnB0jbO/oQ7+pnbX1nn1juZLlrhLV1Fw09wtcqBVzSmHn0Ihjxd7pDWcZDWdmMXvxr9 47fFimUw==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV5bU-00FMG2-5G; Thu, 23 Feb 2023 07:01:20 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Roy Zang , Paul Mackerras , Alexandre Bounine , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 4/4] POWERPC: sysdev/tsi108: fix resource printk format warnings Date: Wed, 22 Feb 2023 23:01:16 -0800 Message-Id: <20230223070116.660-5-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223070116.660-1-rdunlap@infradead.org> References: <20230223070116.660-1-rdunlap@infradead.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758604949058011481?= X-GMAIL-MSGID: =?utf-8?q?1758604949058011481?= Use "%pa" format specifier for resource_size_t to avoid a compiler printk format warning. ../arch/powerpc/sysdev/tsi108_pci.c: In function 'tsi108_setup_pci': ../include/linux/kern_levels.h:5:25: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=] Fixes: c4342ff92bed ("[POWERPC] Update mpc7448hpc2 board irq support using device tree") Fixes: 2b9d7467a6db ("[POWERPC] Add tsi108 pci and platform device data register function") Signed-off-by: Randy Dunlap Cc: Roy Zang Cc: Paul Mackerras Cc: Alexandre Bounine Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/sysdev/tsi108_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -- a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c --- a/arch/powerpc/sysdev/tsi108_pci.c +++ b/arch/powerpc/sysdev/tsi108_pci.c @@ -217,9 +217,9 @@ int __init tsi108_setup_pci(struct devic (hose)->ops = &tsi108_direct_pci_ops; - printk(KERN_INFO "Found tsi108 PCI host bridge at 0x%08x. " + printk(KERN_INFO "Found tsi108 PCI host bridge at 0x%pa. " "Firmware bus number: %d->%d\n", - rsrc.start, hose->first_busno, hose->last_busno); + &rsrc.start, hose->first_busno, hose->last_busno); /* Interpret the "ranges" property */ /* This also maps the I/O region and sets isa_io/mem_base */