From patchwork Mon Sep 23 04:35:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2926051 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 03CBE9F289 for ; Mon, 23 Sep 2013 04:35:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 36CDA2052D for ; Mon, 23 Sep 2013 04:35:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3990120527 for ; Mon, 23 Sep 2013 04:35:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751993Ab3IWEfE (ORCPT ); Mon, 23 Sep 2013 00:35:04 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:24608 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751835Ab3IWEfD (ORCPT ); Mon, 23 Sep 2013 00:35:03 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTK007B39ZU1UG0@mailout1.samsung.com> for linux-pci@vger.kernel.org; Mon, 23 Sep 2013 13:35:01 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id D2.46.17682.5F4CF325; Mon, 23 Sep 2013 13:35:01 +0900 (KST) X-AuditID: cbfee68e-b7f756d000004512-47-523fc4f5b282 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4C.BA.05832.5F4CF325; Mon, 23 Sep 2013 13:35:01 +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 <0MTK00MAXA2DVS20@mmp1.samsung.com>; Mon, 23 Sep 2013 13:35:01 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Thomas Petazzoni' , 'Jason Cooper' , 'Jingoo Han' References: <000c01ceb816$19f0dd10$4dd29730$%han@samsung.com> In-reply-to: <000c01ceb816$19f0dd10$4dd29730$%han@samsung.com> Subject: [PATCH V3 2/3] PCI: mvebu: make local functions static Date: Mon, 23 Sep 2013 13:35:01 +0900 Message-id: <000f01ceb816$4419dce0$cc4d96a0$%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: Ac64FhnBjRak8XOoQvGUUoggPRoNbAAABaAA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsVy+t8zA92vR+yDDC6cFLZY0pRh0bjkMovF 5YWXWC3OzjvOZvH0QROTA6vHk00XGT0WbCr1aDhwnsWjb8sqRo/Pm+QCWKO4bFJSczLLUov0 7RK4Mnafns1asJ+nYumzK2wNjGu4uhg5OCQETCS2XlbqYuQEMsUkLtxbz9bFyMUhJLCMUeLf vN+sEAkTiaPXJrBCJBYxSkw68JwJJCEk8ItRYsIvFxCbTUBN4suXw+wgtoiApsTsFVvAaphB Ji166QpRbyux7GUjWJxTwE7i17pVzCC2sIC9xJNTy8DiLAKqEtd/TwCbwwtUv+T2HihbUOLH 5HssEDO1JNbvPA41X15i85q3zBDPqEs8+qsLcYKRxP/Vr1ghSkQk9r14xwhyv4TANXaJzlX3 WSB2CUh8m3yIBaJXVmLT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E8sSc1OTS1ILYLZwsTBKdXA6HjB8aTT sobjy7tntd467LP62e4fWw9PnvTi7R1DhvVZGpz3GQVWrq/kf7uCQ8ndNfBJgFa2iM6Zw67O nLPeM/qezLadYFX2YV/4Gb+FxgnMLzqOX5Z/OHf2y2vLL5++H6jUenTJSb2lG/cvfJjdlPtq V6LCpm1tC08m7fzrF/DsyhvHtuCd7Z+VWIozEg21mIuKEwHlKVkDRQMAAA== 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=-9.2 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 77f8a7c..0bd3ba8 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;