From patchwork Thu Sep 12 09:36:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2877191 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 4D182BF43F for ; Thu, 12 Sep 2013 09:36:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E44E22021C for ; Thu, 12 Sep 2013 09:36:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43D02202EA for ; Thu, 12 Sep 2013 09:36:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751098Ab3ILJge (ORCPT ); Thu, 12 Sep 2013 05:36:34 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:38305 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914Ab3ILJgd (ORCPT ); Thu, 12 Sep 2013 05:36:33 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT000MU7AM8HFC0@mailout4.samsung.com> for linux-pci@vger.kernel.org; Thu, 12 Sep 2013 18:36:32 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 24.11.31253.02B81325; Thu, 12 Sep 2013 18:36:32 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-4c-52318b207a9a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id BF.5B.05832.02B81325; Thu, 12 Sep 2013 18:36:32 +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 <0MT000BPEAOW8N90@mmp1.samsung.com>; Thu, 12 Sep 2013 18:36:32 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Thomas Petazzoni' , 'Jason Cooper' , 'Jingoo Han' References: <000201ceaf9b$098780b0$1c968210$%han@samsung.com> In-reply-to: <000201ceaf9b$098780b0$1c968210$%han@samsung.com> Subject: [PATCH 2/3] PCI: mvebu: make local functions static Date: Thu, 12 Sep 2013 18:36:33 +0900 Message-id: <000401ceaf9b$9132cba0$b39862e0$%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: Ac6vmwlw4HfqNtHBQ7mmAo8MChTKZgAAD5dg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsVy+t8zI12FbsMgg/fdyhZLmjIsGpdcZrG4 vPASq8XZecfZLJ4+aGJyYPV4sukio8eCTaUeDQfOs3j0bVnF6PF5k1wAaxSXTUpqTmZZapG+ XQJXxptDixkL/nJXrGzmbWB8z9nFyMkhIWAicfLdPFYIW0ziwr31bF2MXBxCAssYJdb9eMIK U/S1pYUdIrGIUWL2selQzi9GiTmPzrGDVLEJqEl8+XIYzBYR0JSYvWILE4jNDDJq0UtXEFtI wFbixZefbCA2p4CdxJsH/SwgtrCAjUTnrG1A2zg4WARUJc6+NQAJ8wKVH1u9kRnCFpT4Mfke C8RILYn1O49DjZeX2LzmLTNIq4SAusSjv7oQFxhJ3Hm4BKpcRGLfi3eMEL9cY5dYPwmshkVA QOLb5EMsEK2yEpsOMEOUSEocXHGDZQ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MjE3J01YSZz3YKt1oJBAemJJanZqakFqEcwWJg5OqQbG5mT5 k3afamRmM97ZUmkS0H2/llVzgjnzQR1ttVfPer7uWpd4j7vxbvqrjfVPb00MzDYpm6e6xdT7 udzm3iNvRZvnvNH4unjba64a2+qDVl+1k5/urNgmE7g26L5G2ukVK1n4Je7/uJzmllA0+eVS yQXuYQ8+zGMSzrroesxOed/PCIOH3NNXK7EUZyQaajEXFScCAEN+vhxEAwAA 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.8 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;