From patchwork Sat Apr 19 00:13:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Desfosses X-Patchwork-Id: 4018991 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 66E5DBFF02 for ; Sat, 19 Apr 2014 00:15:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9A0FD2037A for ; Sat, 19 Apr 2014 00:15:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8171C20380 for ; Sat, 19 Apr 2014 00:15:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754688AbaDSAPW (ORCPT ); Fri, 18 Apr 2014 20:15:22 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35639 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754582AbaDSAOe (ORCPT ); Fri, 18 Apr 2014 20:14:34 -0400 Received: from mfilter26-d.gandi.net (mfilter26-d.gandi.net [217.70.178.154]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id DD3D1172077; Sat, 19 Apr 2014 02:14:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter26-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter26-d.gandi.net (mfilter26-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id H6uHoxLDDWKf; Sat, 19 Apr 2014 02:14:32 +0200 (CEST) X-Originating-IP: 76.119.93.133 Received: from localhost.localdomain (c-76-119-93-133.hsd1.ct.comcast.net [76.119.93.133]) (Authenticated sender: ryan@desfo.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D8F22172090; Sat, 19 Apr 2014 02:14:30 +0200 (CEST) From: Ryan Desfosses To: bhelgaas@google.com Cc: trivial@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Ryan Desfosses Subject: [PATCH 2/8] bus: moved EXPORT_SYMBOL so that it immediately followed its function/variable Date: Fri, 18 Apr 2014 20:13:47 -0400 Message-Id: <1397866433-21119-3-git-send-email-ryan@desfo.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1397866433-21119-1-git-send-email-ryan@desfo.org> References: <1397866433-21119-1-git-send-email-ryan@desfo.org> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP change made to resolve following checkpatch message: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable branch: Linux 3.15-rc1 Signed-off-by: Ryan Desfosses --- drivers/pci/bus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index fb8aed3..2164d29 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c @@ -227,6 +227,7 @@ int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, type_mask, alignf, alignf_data, &pci_32_bit); } +EXPORT_SYMBOL(pci_bus_alloc_resource); void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { } @@ -256,6 +257,7 @@ int pci_bus_add_device(struct pci_dev *dev) return 0; } +EXPORT_SYMBOL_GPL(pci_bus_add_device); /** * pci_bus_add_devices - start driver for PCI devices @@ -286,6 +288,7 @@ void pci_bus_add_devices(const struct pci_bus *bus) pci_bus_add_devices(child); } } +EXPORT_SYMBOL(pci_bus_add_devices); /** pci_walk_bus - walk devices on/under bus, calling callback. * @top bus whose devices should be walked @@ -351,6 +354,3 @@ void pci_bus_put(struct pci_bus *bus) } EXPORT_SYMBOL(pci_bus_put); -EXPORT_SYMBOL(pci_bus_alloc_resource); -EXPORT_SYMBOL_GPL(pci_bus_add_device); -EXPORT_SYMBOL(pci_bus_add_devices);