From patchwork Tue Sep 17 05:26:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900861 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DEE909F1BF for ; Tue, 17 Sep 2013 05:26:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE0BF20326 for ; Tue, 17 Sep 2013 05:26:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F2450201BF for ; Tue, 17 Sep 2013 05:26:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751162Ab3IQF0t (ORCPT ); Tue, 17 Sep 2013 01:26:49 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:59467 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130Ab3IQF0s (ORCPT ); Tue, 17 Sep 2013 01:26:48 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900FVN8GIUF10@mailout4.samsung.com> for linux-pci@vger.kernel.org; Tue, 17 Sep 2013 14:26:47 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id F5.73.29948.718E7325; Tue, 17 Sep 2013 14:26:47 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-9e-5237e8175483 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id AE.E6.05832.718E7325; Tue, 17 Sep 2013 14:26:47 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MT9001GB8GMMQ50@mmp1.samsung.com>; Tue, 17 Sep 2013 14:26:47 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Thomas Petazzoni' , 'Jason Cooper' , 'Jingoo Han' References: <001a01ceb366$5e9481b0$1bbd8510$%han@samsung.com> In-reply-to: <001a01ceb366$5e9481b0$1bbd8510$%han@samsung.com> Subject: [PATCH V2 2/3] PCI: mvebu: make local functions static Date: Tue, 17 Sep 2013 14:26:46 +0900 Message-id: <001b01ceb366$812673a0$83735ae0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6zZl5+kmbKEZAhToGpxpyQ271bsQAAAwJQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsVy+t8zA13xF+ZBBi139C2WNGVYNC65zGJx eeElVouz846zWTx90MTkwOrxZNNFRo8Fm0o9Gg6cZ/Ho27KK0ePzJrkA1igum5TUnMyy1CJ9 uwSujPUnW5kL9vNUXLh6n7GBcQ1XFyMnh4SAicTWvasZIWwxiQv31rN1MXJxCAksY5Q4/WQW K0xR89HFjBCJRYwSG5d+YIFwfjFKfLl2mA2kik1ATeLLl8PsILaIgKbE7BVbmEBsZpBRi166 djFyADXYSjw7bw8S5hSwk7i09TtYubCAvcSp7bPZQEpYBFQlPjeXgoR5gapXPrrPCGELSvyY fI8FYqKWxPqdx6Gmy0tsXvOWGaRVQkBd4tFfXYgDjCQWr5kDVSIise/FO7DzJQSusUtMufAO 7GIWAQGJb5MPsUD0ykpsOsAM8a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M57sNU6UEggPbEkNTs1tSC1CGYLEwenVANjy4Ir 5+xmcHc1+8948ClpYt7P3hh7jmWNi1xuGrIFxXdf+zbn2ktDn+5w6+9HdjwM77sheWJ1Vcoj XvmMVyHcckq9e7LZ5PO43q9v+Pxc9tKsf7k3kxZZb8xeOy/RwYt5zd+4aRG1l58scXtZsM/7 iOCSIz4Pm8qF7nr+PBeqmq/C+cBPJyJPiaU4I9FQi7moOBEAWL4rSkQDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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.6 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 mvebu_pcie_add_bus(), mvebu_pcie_align_resource() are used only in this file. Thus, these local functions should be staticized in order to fix the following sparse warnings: drivers/pci/host/pci-mvebu.c:684:6: warning: symbol 'mvebu_pcie_add_bus' was not declared. Should it be static? drivers/pci/host/pci-mvebu.c:690:17: warning: symbol 'mvebu_pcie_align_resource' was not declared. Should it be static? Signed-off-by: Jingoo Han Acked-by: Thomas Petazzoni --- drivers/pci/host/pci-mvebu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c index d66530e..b54ceb1 100644 --- a/drivers/pci/host/pci-mvebu.c +++ b/drivers/pci/host/pci-mvebu.c @@ -681,17 +681,17 @@ static struct pci_bus *mvebu_pcie_scan_bus(int nr, struct pci_sys_data *sys) return bus; } -void mvebu_pcie_add_bus(struct pci_bus *bus) +static void mvebu_pcie_add_bus(struct pci_bus *bus) { struct mvebu_pcie *pcie = sys_to_pcie(bus->sysdata); bus->msi = pcie->msi; } -resource_size_t mvebu_pcie_align_resource(struct pci_dev *dev, - const struct resource *res, - resource_size_t start, - resource_size_t size, - resource_size_t align) +static resource_size_t mvebu_pcie_align_resource(struct pci_dev *dev, + const struct resource *res, + resource_size_t start, + resource_size_t size, + resource_size_t align) { if (dev->bus->number != 0) return start;