From patchwork Tue May 8 23:46:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 157834 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42DEAB6FA0 for ; Wed, 9 May 2012 09:46:14 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755376Ab2EHXqN (ORCPT ); Tue, 8 May 2012 19:46:13 -0400 Received: from mail-qc0-f202.google.com ([209.85.216.202]:37637 "EHLO mail-qc0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755114Ab2EHXqM (ORCPT ); Tue, 8 May 2012 19:46:12 -0400 Received: by qcsp5 with SMTP id p5so297510qcs.1 for ; Tue, 08 May 2012 16:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:date:message-id:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding; bh=uTcM9Liknz/95pgNgBIiQgxdice+3YpUdLgxoo4bhEo=; b=VaXucRWt36+vOWL+ZCgZ+9/8ATe4SnOC3t7hm+j3D34vQ5Ezkm44yRSBXmRs1vKlmb 7RChB7YSkyJvUSh+A7z/NSo6XAGxXdiyCflPi3Zt/gs59l1pfxRxa0p0RXgR+7XvC5AC RljwqJAH60mQKUrVJ+Lyg/blIt2PMvO9VF6gDRHCX4AfPUEVdW/+Sxt1hfdp3RGopNs4 MIXkLrEjJvNSSxK5EO/Pjmyc9jH90xDrHtDzht1AtcCTM4KOvt0xXAheMLdjHdY8FE87 WEql8w6knl6qZNzxwvJkSLxWuUokPSWHmX7og0tU1A/fHHAMMQ1YGqSg4oXjm59VwNBj ndtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:date:message-id:in-reply-to:references:user-agent :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=uTcM9Liknz/95pgNgBIiQgxdice+3YpUdLgxoo4bhEo=; b=SCtjhcOsJzjOrt+d6GQ7jhmfnDYTVS6k0sGx+KIgXXOcnAFUoQ/gAb9daJkbFG2/HT BedIXtfJReYXIBads+dIXnXwEqJHm28MBVJLocLSjklugMjmh8WDYq6RePeQ+96wriN0 IN20JoBcKA9/vlO6QcLd1AyZ/2InFKtU2yzIx3iC8fHhG1hg+6Vxj334nv9TrfnA+1/9 J6inBrmlKHfXhxDoZGujFKmvIIGFZRZcYrDLCIJcmqUQZHTzfdIloC1TksizUei04fzL nr/NUlDfYFmQ3wxK6wr+jS4III6b1kzy6tPQO/c2RdEDfIqFr/1NG/IAzMQAKBIHPtmk kemQ== Received: by 10.236.201.229 with SMTP id b65mr29992984yho.9.1336520771690; Tue, 08 May 2012 16:46:11 -0700 (PDT) Received: by 10.236.201.229 with SMTP id b65mr29992974yho.9.1336520771629; Tue, 08 May 2012 16:46:11 -0700 (PDT) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id v25si866041yhm.0.2012.05.08.16.46.11 (version=TLSv1/SSLv3 cipher=AES128-SHA); Tue, 08 May 2012 16:46:11 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (bhelgaas.mtv.corp.google.com [172.18.96.155]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 84BAF10004D for ; Tue, 8 May 2012 16:46:11 -0700 (PDT) Received: from bhelgaas.mtv.corp.google.com (unknown [IPv6:::1]) by bhelgaas.mtv.corp.google.com (Postfix) with ESMTP id 3AFF4180170 for ; Tue, 8 May 2012 16:46:11 -0700 (PDT) Subject: [PATCH 2/3] PCI: remove pci_max_busnr() (was already commented out) To: linux-pci@vger.kernel.org From: Bjorn Helgaas Date: Tue, 08 May 2012 17:46:11 -0600 Message-ID: <20120508234611.2085.95132.stgit@bhelgaas.mtv.corp.google.com> In-Reply-To: <20120508234605.2085.32267.stgit@bhelgaas.mtv.corp.google.com> References: <20120508234605.2085.32267.stgit@bhelgaas.mtv.corp.google.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnlZmDIXYYvY3D+q6msmhrxQwjX6WD1ZJXQmDYzVTw/sf4nQJr18mTu6S34toFgWwKNYbwxbXzsnchcaoLW9z7RN0sxQQA2lRn62ow9bGfJ/9Nln9dHtWLTdZOI5hzzyyfg02A4jpqJoKus1lolR2GH+NI1MmWt6j6hE921IJUeEywgmhw= Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org pci_max_busnr() has been commented out for years (since 54c762fe62), and this patch removes it completely. Signed-off-by: Bjorn Helgaas --- drivers/pci/pci.c | 24 ------------------------ 1 files changed, 0 insertions(+), 24 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 69c21f0..09cd709 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -135,30 +135,6 @@ void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar) EXPORT_SYMBOL_GPL(pci_ioremap_bar); #endif -#if 0 -/** - * pci_max_busnr - returns maximum PCI bus number - * - * Returns the highest PCI bus number present in the system global list of - * PCI buses. - */ -unsigned char __devinit -pci_max_busnr(void) -{ - struct pci_bus *bus = NULL; - unsigned char max, n; - - max = 0; - while ((bus = pci_find_next_bus(bus)) != NULL) { - n = pci_bus_max_busnr(bus); - if(n > max) - max = n; - } - return max; -} - -#endif /* 0 */ - #define PCI_FIND_CAP_TTL 48 static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn,