Received: by 10.213.65.68 with SMTP id h4csp3904721imn; Tue, 10 Apr 2018 06:29:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx49+Uah5KyuNioFHuYXudsPMFE7i6iSRXgArHtyrOR1Mp4kinDw/L8VX1L3aC8UsbnV1XeFS X-Received: by 10.99.95.86 with SMTP id t83mr295143pgb.183.1523366956173; Tue, 10 Apr 2018 06:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523366956; cv=none; d=google.com; s=arc-20160816; b=G32AG74pMKzLFwmmIA6ldpeL3uQ//ppDuzjGnmLXteH+/pQfAa5xe1Jm0u+UKDa0rw N059byvyeRaehzv/1lbwzuCdVkHhDfFS0CGFG7a4hxh+R3t+65ml81WIf60o65IuIvjX yoTD7jLkDVpNdjQZmZVi0SI3XT1/Pqao3/FwgIxaTsChOtLIq/5xe6GTlT8kfGWIxdyE KfMPn8AdDZslSyjy/VAb/Ytf/EPF+UlpPI96OPp7P88wHY87L714yOk6wjS5B2TfLraY kYyd0cliQNrsLMidgVO/7Tp51zvWnwTZKfd6+IwdCNi83yDsntEOztYG9j8K/sfsYCEg 3/ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dmarc-filter:arc-authentication-results; bh=DGwal/8VcfZxK1tph2T3aL0eBskIJCrvV7PrPkyZGgE=; b=Ka6mNJh+41Qj5lTTUzUDvxo4RcmQ6SfLOCT+aXSpXG6BJHyR1t485K84acwhQQ9/Bh 45yG8teX7OWbGou9V8CkNU57TjQouhkGM9J071TR5a20ERPHHrxBHD+evymjyELnG1/6 JGEarpoysoK2Pw5+j/jj7p6wjv1xPuv3rkrewwwAAri9DArOrOpR04ouCCE9IlSD4hO2 iyV3e0QUghc6lbEmR+y/ZsbrrYWoyRFhStlPPsFb2D7Y/gU4d9EJz+MkSL5ZzHvocKGj pNuYfgJV1oGmwJqR+r4Rthao7iqBdsDIQBBExwr1DcDwbWFTXfgwyLQ5TeEy8IG70atJ PrFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z22-v6si2692693plo.270.2018.04.10.06.28.39; Tue, 10 Apr 2018 06:29:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753983AbeDJNZR (ORCPT + 99 others); Tue, 10 Apr 2018 09:25:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:55740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752847AbeDJNZO (ORCPT ); Tue, 10 Apr 2018 09:25:14 -0400 Received: from localhost (50-81-22-222.client.mchsi.com [50.81.22.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CBDC621738; Tue, 10 Apr 2018 13:25:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBDC621738 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Subject: [PATCH v1 2/2] microblaze/PCI: Remove pcibios_claim_one_bus() dead code From: Bjorn Helgaas To: Michal Simek Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 10 Apr 2018 08:25:12 -0500 Message-ID: <152336671276.18958.18175353602437569251.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <152336656418.18958.17017091754578447948.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <152336656418.18958.17017091754578447948.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Helgaas pcibios_claim_one_bus() is defined but never used. Remove it. Signed-off-by: Bjorn Helgaas --- arch/microblaze/include/asm/pci.h | 2 -- arch/microblaze/pci/pci-common.c | 37 ------------------------------------- 2 files changed, 39 deletions(-) diff --git a/arch/microblaze/include/asm/pci.h b/arch/microblaze/include/asm/pci.h index 4a96480e7716..7cfb90010f16 100644 --- a/arch/microblaze/include/asm/pci.h +++ b/arch/microblaze/include/asm/pci.h @@ -67,8 +67,6 @@ extern int pci_mmap_legacy_page_range(struct pci_bus *bus, */ #define PCI_DMA_BUS_IS_PHYS (1) -extern void pcibios_claim_one_bus(struct pci_bus *b); - extern void pcibios_resource_survey(void); struct file; diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 61494c4379f9..6a4e5b32a90e 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c @@ -996,43 +996,6 @@ void __init pcibios_resource_survey(void) pci_assign_unassigned_resources(); } -/* This is used by the PCI hotplug driver to allocate resource - * of newly plugged busses. We can try to consolidate with the - * rest of the code later, for now, keep it as-is as our main - * resource allocation function doesn't deal with sub-trees yet. - */ -void pcibios_claim_one_bus(struct pci_bus *bus) -{ - struct pci_dev *dev; - struct pci_bus *child_bus; - - list_for_each_entry(dev, &bus->devices, bus_list) { - int i; - - for (i = 0; i < PCI_NUM_RESOURCES; i++) { - struct resource *r = &dev->resource[i]; - - if (r->parent || !r->start || !r->flags) - continue; - - pr_debug("PCI: Claiming %s: ", pci_name(dev)); - pr_debug("Resource %d: %016llx..%016llx [%x]\n", - i, (unsigned long long)r->start, - (unsigned long long)r->end, - (unsigned int)r->flags); - - if (pci_claim_resource(dev, i) == 0) - continue; - - pci_claim_bridge_resource(dev, i); - } - } - - list_for_each_entry(child_bus, &bus->children, node) - pcibios_claim_one_bus(child_bus); -} -EXPORT_SYMBOL_GPL(pcibios_claim_one_bus); - static void pcibios_setup_phb_resources(struct pci_controller *hose, struct list_head *resources) {