From patchwork Fri Apr 12 20:47:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 2437921 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CB37BDF2A1 for ; Fri, 12 Apr 2013 20:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754048Ab3DLUrr (ORCPT ); Fri, 12 Apr 2013 16:47:47 -0400 Received: from mail-ia0-f182.google.com ([209.85.210.182]:43730 "EHLO mail-ia0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938Ab3DLUrq (ORCPT ); Fri, 12 Apr 2013 16:47:46 -0400 Received: by mail-ia0-f182.google.com with SMTP id u20so2768815iag.13 for ; Fri, 12 Apr 2013 13:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=goKOnRJUmgcg3jnXXJ4lue95CYMmozGhjtonqM2RfRI=; b=oRSNh1ZGy9ZeOv8E19DknhaDiYNYtwvW36UT4Fiajj1W7WED4Wny0o8+KC2KqJMwlV zxEqZqf8a9x20D1qDmPeogzZifo3pPxa5lWlyHC4d2AsZFCbJaobwK7z8IsB0i9JT3FH KPjtye4UOLpiUzKETwlNTBYyAE/ALMpwEjO5xs3FAGBH5Fb3A8dK3mTYG0EErq1TtjaB IMZ7+VWgNKXyfWqD1Ei4pIkCnAKvZLQE4/cIbRmNlJfMR8oTtaiO6Dh8o2Btm3mRNE0D /JpOU2euZXZHwfud3+hR/lccZ3Tv9v3qNQDwcqKDlLTUZ1snWDgmD18usHAdkf8XVvdL jbZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=goKOnRJUmgcg3jnXXJ4lue95CYMmozGhjtonqM2RfRI=; b=C0BiJy02c/UskrAPWjs0P/TShULHYFOCNRC1M8ngOfQIARxPu4I4Re57ccrRK6DGmG aa5sd+sBEGW0Jxkbd6pJCj1+f5ziE4uerMrE2Nms37i1l0ZTv/q+a5fH356ISd0mMxIP JQzo9QT0530QJR7wyre75/evPI90hHpklx6pXvRxxTN2yNBF0zT7+6qk1/S5BcWlxWoL 3QFtH61X8QjAxOICWidnbnvPRUiXzRqklHQE1oFBvL3yGxdQG83wLd/pQcX1TFO6mMlr ZyIbpvErKXEGqjuUptMJ1DcF4URDWSB71PVZUphk19iLKTtRALW6uxTPFR8cLcOXeQ7y HGzA== X-Received: by 10.42.58.201 with SMTP id j9mr7305307ich.20.1365799666232; Fri, 12 Apr 2013 13:47:46 -0700 (PDT) Received: from localhost ([172.16.49.242]) by mx.google.com with ESMTPS id wx2sm32973igb.4.2013.04.12.13.47.44 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Apr 2013 13:47:45 -0700 (PDT) Subject: [PATCH 1/6] PCI: Make local functions/structs static To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: "Rafael J. Wysocki" , Andy Shevchenko Date: Fri, 12 Apr 2013 14:47:43 -0600 Message-ID: <20130412204743.5237.31153.stgit@bhelgaas-glaptop> In-Reply-To: <20130412204510.5237.25443.stgit@bhelgaas-glaptop> References: <20130412204510.5237.25443.stgit@bhelgaas-glaptop> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmbmnXLW8UUObAl5NJLafsMh6n8bRxsZx0IdKKgHz0qzd0/36I7DK+JdunlyztdbiyUhw7C1zFr5z0Rxr8uslMqG1ND6H0D9mgWLO59F/x2iis+JT1HRp8wijhX4GO6as9epPSGpfNtYMVAvYtrKXfq7tLWdNvwelycp1CpM2Lke3ncStxOBbC9UaSzdmGaBrpNK4HocLXzMmFTcRktbcL6FSJvao1tybS0K8GVT5P9V5sBg/Q= Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This fixes "no previous prototype" warnings found via "make W=1". Signed-off-by: Bjorn Helgaas --- drivers/pci/msi.c | 4 ++-- drivers/pci/pci.c | 8 ++++---- drivers/pci/setup-bus.c | 2 +- 3 files changed, 7 insertions(+), 7 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/msi.c b/drivers/pci/msi.c index 00cc78c..bbff7d5 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -484,12 +484,12 @@ static struct msi_attribute mode_attribute = __ATTR(mode, S_IRUGO, show_msi_mode, NULL); -struct attribute *msi_irq_default_attrs[] = { +static struct attribute *msi_irq_default_attrs[] = { &mode_attribute.attr, NULL }; -void msi_kobj_release(struct kobject *kobj) +static void msi_kobj_release(struct kobject *kobj) { struct msi_desc *entry = to_msi_desc(kobj); diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index b099e00..f0ef399 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -2619,7 +2619,7 @@ void pci_release_selected_regions(struct pci_dev *pdev, int bars) pci_release_region(pdev, i); } -int __pci_request_selected_regions(struct pci_dev *pdev, int bars, +static int __pci_request_selected_regions(struct pci_dev *pdev, int bars, const char *res_name, int excl) { int i; @@ -3699,7 +3699,7 @@ static DEFINE_SPINLOCK(resource_alignment_lock); * RETURNS: Resource alignment if it is specified. * Zero if it is not specified. */ -resource_size_t pci_specified_resource_alignment(struct pci_dev *dev) +static resource_size_t pci_specified_resource_alignment(struct pci_dev *dev) { int seg, bus, slot, func, align_order, count; resource_size_t align = 0; @@ -3812,7 +3812,7 @@ void pci_reassigndev_resource_alignment(struct pci_dev *dev) } } -ssize_t pci_set_resource_alignment_param(const char *buf, size_t count) +static ssize_t pci_set_resource_alignment_param(const char *buf, size_t count) { if (count > RESOURCE_ALIGNMENT_PARAM_SIZE - 1) count = RESOURCE_ALIGNMENT_PARAM_SIZE - 1; @@ -3823,7 +3823,7 @@ ssize_t pci_set_resource_alignment_param(const char *buf, size_t count) return count; } -ssize_t pci_get_resource_alignment_param(char *buf, size_t size) +static ssize_t pci_get_resource_alignment_param(char *buf, size_t size) { size_t count; spin_lock(&resource_alignment_lock); diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 7e8739e..502a75e 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -1044,7 +1044,7 @@ handle_done: ; } -void __ref __pci_bus_size_bridges(struct pci_bus *bus, +static void __ref __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) { struct pci_dev *dev;