From patchwork Sat Aug 5 06:37:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinghai Lu X-Patchwork-Id: 9882913 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 743E9602B6 for ; Sat, 5 Aug 2017 06:40:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C1F627CEA for ; Sat, 5 Aug 2017 06:40:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50EE628A0C; Sat, 5 Aug 2017 06:40:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 578BF28A09 for ; Sat, 5 Aug 2017 06:40:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbdHEGk0 (ORCPT ); Sat, 5 Aug 2017 02:40:26 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35543 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbdHEGi2 (ORCPT ); Sat, 5 Aug 2017 02:38:28 -0400 Received: by mail-pf0-f193.google.com with SMTP id j68so3776563pfc.2; Fri, 04 Aug 2017 23:38:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=eg9V7t2s0OHJHeL1hOLQ+2Ea9xfzMA+M/suWuoqVeJE=; b=DylRHsCW4bR650+7iUiFXCHLpSQv4N/1jLCeNo0QN/C1408wQ5jSnByOE4gcIyOn5b eMRkLWLUVihZ8LIfr/oSWV++MgZ2QxBhdiRcm/nSi1gnVBxEfSXSTtqz+KCbWOfd7uwn UlU6LHPGddEKoqSJe2HdDeoADUyVz5968QEr5S5FtlWAQLpwl81fo79B/ugUqLOc2EY+ vu421hXFuCoKVNy6dXjv4fWDgJH7DbnEhgUl6GyOJFXNlqeBZzuvczezf5ukXPWkWXj9 AmeuCPTGuUxfOgI8y6CNTHoY/m297SvqqIWbMqhT1y3ccZ3LObC8K5VxjkJb6VahUUY3 ExLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=eg9V7t2s0OHJHeL1hOLQ+2Ea9xfzMA+M/suWuoqVeJE=; b=jo6REaHTDIRRi7+l/pIhQftEJq/nyGOo7iF4s7hpzd4GZOr/0LimgvA0TmYIDssDFD TxabWR4dV0D2VJ1MqzuvwBksdf0cIVCAX7idDyGrLnPQGokEHNaPWW2SwtjuB+0t0rod zLL+5iH43cWYvKXtz7+ENj+x8tGTIg8cQuKiE/K08evCmG1RSmhpgYpgsGXg9slW3EAK msVadWTyNwk6S5UeE68SLa8SbzNPgfp0C4Z1P8+dUQ+sBzQ5dWBPuaIUfuK5ubNot0of xPEMO+zuRlfhQscPKM99yX5YRAL7lJeTePMX+epQyPj2xH/vXRP95XrQoUNrLfR24707 BJvQ== X-Gm-Message-State: AIVw112kHHtcgRYcAA6bQ+sDuLNgNZAXcLV2MaKtd+rg+Jkl86RwdeKi OIK+A3NCVWQ3WA== X-Received: by 10.98.16.68 with SMTP id y65mr5043511pfi.165.1501915108461; Fri, 04 Aug 2017 23:38:28 -0700 (PDT) Received: from dhcp-whq-twvpn-3-vpnpool-10-159-238-106.vpn.oracle.com (c-69-181-250-163.hsd1.ca.comcast.net. [69.181.250.163]) by smtp.gmail.com with ESMTPSA id j124sm6131387pfc.78.2017.08.04.23.38.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Aug 2017 23:38:28 -0700 (PDT) From: Yinghai Lu To: Bjorn Helgaas Cc: Linus Torvalds , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Yinghai Lu Subject: [PATCH 03/10] PCI: export symbol for PCI_TEST module Date: Fri, 4 Aug 2017 23:37:54 -0700 Message-Id: <20170805063801.15880-4-yinghai@kernel.org> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170805063801.15880-1-yinghai@kernel.org> References: <20170805063801.15880-1-yinghai@kernel.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We need to use them from pci_test module, so expose them. Signed-off-by: Yinghai Lu --- arch/x86/pci/i386.c | 1 + drivers/pci/setup-bus.c | 1 + kernel/resource.c | 2 ++ 3 files changed, 4 insertions(+) diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c index 7b43071..9065c58 100644 --- a/arch/x86/pci/i386.c +++ b/arch/x86/pci/i386.c @@ -383,6 +383,7 @@ void pcibios_resource_survey_bus(struct pci_bus *bus) if (!(pci_probe & PCI_ASSIGN_ROMS)) pcibios_allocate_rom_resources(bus); } +EXPORT_SYMBOL_GPL(pcibios_resource_survey_bus); void __init pcibios_resource_survey(void) { diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 1c30102..24292e9 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -1839,6 +1839,7 @@ void pci_assign_unassigned_root_bus_resources(struct pci_bus *bus) /* dump the resource on buses */ pci_bus_dump_resources(bus); } +EXPORT_SYMBOL_GPL(pci_assign_unassigned_root_bus_resources); void __init pci_assign_unassigned_resources(void) { diff --git a/kernel/resource.c b/kernel/resource.c index 4174020..0d40d9a 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -301,6 +301,8 @@ void release_child_resources(struct resource *r) write_unlock(&resource_lock); } +EXPORT_SYMBOL_GPL(release_child_resources); + /** * request_resource_conflict - request and reserve an I/O or memory resource * @root: root resource descriptor