Message ID | 20230925042316.15415-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp990965vqu; Sun, 24 Sep 2023 22:25:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjf2efotGL+MmHHvoNM55z05nG4SKaLBDInMUGoFT5bLax/9P5tQIrfZOJbIV+Em2tlovl X-Received: by 2002:aa7:88cf:0:b0:68f:fa05:b77a with SMTP id k15-20020aa788cf000000b0068ffa05b77amr4415904pff.31.1695619554733; Sun, 24 Sep 2023 22:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695619554; cv=none; d=google.com; s=arc-20160816; b=lpMbhPsofZzMDZEfyYmVaWX/ImlJZVm/PtyVZie1rQCONvIk7xIXXxlq1Aa78of3gN 3iInmHy6H7t+quqVB1x6jf+Mv1RFtF+yvVeWtf3P43RHXhG92J4EsFydJlzlv4GBV20Y 48uz21ldpoKwPDXlz1jh1g8fwCO5oOTYDxqJDyP+yw5kulPu1hnFcnYEVa87A3btJg43 LTA5h1BcjYhXmigcYkxTBVj0ug29aBO9IppN78+ce7VBKT/+twTi+lbvIUAUgaFhtMCp Fh/CNLGnVYzy73/zuIFH4uJFU8BAO2VJ5JFCWo8vAcFesMgrnB/yXgVSvjo5w3+xiw4u DYDA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ILGZAfdelVgoTP+HxOb4cMyS2JXCc5vOiwjWFc+TAx4=; fh=aaDB+PT6JKhsjP3hdAOz1EYJMm9X2/WqcNq5+OJUxn4=; b=0qeldVuaNUZBF7jYjDIdCR+fjPy4iGLc4clD+DRKXcZlBRhavZba3ac4lSVDA6d7Xe WuVuQ45+Oq3IFQQsdZdvNRAd+QlGKLMcrlPFM3MUec+FwRqEjMXbGA8fay6iWN/N9k6Q G16XRZRzglZ+bBTI8aaqg3DbP8pXstOfDXmft7Imtt+NDLfTV5QoA+wLYkWtdFJjuwhm I43prKuYbgsZZTpBnKifdreSKsmmz9Z+MWAwiibsaHT9pRV6YgKX0pZ/iY4kjYjUimQy QkOKYtIuENq8+YVbsxTEegNh7/C3MtCkxYeklFgm75pmLnaw3FlF8CKQ39B9iYn60Eg5 URsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BNFEnifC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t38-20020a056a0013a600b0068fe810e870si10105764pfg.100.2023.09.24.22.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 22:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BNFEnifC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EDD1880A4982; Sun, 24 Sep 2023 21:23:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231584AbjIYEX0 (ORCPT <rfc822;ezelljr.billy@gmail.com> + 30 others); Mon, 25 Sep 2023 00:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjIYEXZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 25 Sep 2023 00:23:25 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC7D92; Sun, 24 Sep 2023 21:23:18 -0700 (PDT) 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:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=ILGZAfdelVgoTP+HxOb4cMyS2JXCc5vOiwjWFc+TAx4=; b=BNFEnifCAjgxh2RF+vXKaqjzDZ GRupHL37U4qUc6ifu4iShlMqaAp0tT6cZNPOP3jxC83eb+PEWzaa8VIC7s5lBHJesUuU/SErRAimb /Si67+b8F88x905/e+5+0z6TzR8Fw+PnJi62FTpe3NYnDTCTACduytwgekPUX59UhJIkR64eodcmc 2o/aaz8dYrGwvyhERBms0QB0ErjaBC4gLyyJ5CSEbJTY8vZ287ilNOMJjL9sKiUdCaTj1b9Iwu1/v YNmVrOihwAeOAwBEFzHtu041L1j6sWyeGH84JdHph4srWBdkz7wW6XaWO/53ri6RUYRgRM3nUlHjO RM+9hRXQ==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qkd7t-00DI3i-2o; Mon, 25 Sep 2023 04:23:17 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Bjorn Helgaas <bhelgaas@google.com>, linux-pci@vger.kernel.org, "David S. Miller" <davem@davemloft.net>, sparclinux@vger.kernel.org Subject: [PATCH] PCI: make pci_assign_unassigned_resources() non-init Date: Sun, 24 Sep 2023 21:23:16 -0700 Message-ID: <20230925042316.15415-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 24 Sep 2023 21:23:57 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777985970152410930 X-GMAIL-MSGID: 1777985970152410930 |
Series |
PCI: make pci_assign_unassigned_resources() non-init
|
|
Commit Message
Randy Dunlap
Sept. 25, 2023, 4:23 a.m. UTC
Fix a section mismatch warning on Sparc 32-bit:
WARNING: modpost: vmlinux: section mismatch in reference: leon_pci_init+0xf8 (section: .text) -> pci_assign_unassigned_resources (section: .init.text)
This is due to this comment from arch/sparc/kernel/leon_pci.c:
* The LEON architecture does not rely on a BIOS or bootloader to setup
* PCI for us. The Linux generic routines are used to setup resources,
* reset values of configuration-space register settings are preserved.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
---
drivers/pci/setup-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sun, Sep 24, 2023 at 09:23:16PM -0700, Randy Dunlap wrote: > Fix a section mismatch warning on Sparc 32-bit: > > WARNING: modpost: vmlinux: section mismatch in reference: leon_pci_init+0xf8 (section: .text) -> pci_assign_unassigned_resources (section: .init.text) > > This is due to this comment from arch/sparc/kernel/leon_pci.c: > * The LEON architecture does not rely on a BIOS or bootloader to setup > * PCI for us. The Linux generic routines are used to setup resources, > * reset values of configuration-space register settings are preserved. > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: Bjorn Helgaas <bhelgaas@google.com> > Cc: linux-pci@vger.kernel.org > Cc: "David S. Miller" <davem@davemloft.net> > Cc: sparclinux@vger.kernel.org Applied to misc for v6.7, thanks! > --- > drivers/pci/setup-bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -- a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c > --- a/drivers/pci/setup-bus.c > +++ b/drivers/pci/setup-bus.c > @@ -2129,7 +2129,7 @@ dump: > pci_bus_dump_resources(bus); > } > > -void __init pci_assign_unassigned_resources(void) > +void pci_assign_unassigned_resources(void) > { > struct pci_bus *root_bus; >
diff -- a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -2129,7 +2129,7 @@ dump: pci_bus_dump_resources(bus); } -void __init pci_assign_unassigned_resources(void) +void pci_assign_unassigned_resources(void) { struct pci_bus *root_bus;