From patchwork Thu Nov 6 05:37:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 5239171 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 A8C4DC11AC for ; Thu, 6 Nov 2014 05:37:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DAE292010B for ; Thu, 6 Nov 2014 05:37:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76F38200F3 for ; Thu, 6 Nov 2014 05:37:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750881AbaKFFhJ (ORCPT ); Thu, 6 Nov 2014 00:37:09 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:16343 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828AbaKFFhI (ORCPT ); Thu, 6 Nov 2014 00:37:08 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEL0060YRLTXH80@mailout3.samsung.com> for linux-pci@vger.kernel.org; Thu, 06 Nov 2014 14:37:05 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id A3.65.17016.1090B545; Thu, 06 Nov 2014 14:37:05 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-ac-545b090172f2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 76.DA.09430.1090B545; Thu, 06 Nov 2014 14:37:05 +0900 (KST) Received: from DOJG1HAN03 ([10.89.38.123]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NEL00MOPRLTIL60@mmp2.samsung.com>; Thu, 06 Nov 2014 14:37:05 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Kishon Vijay Abraham I' , 'Jingoo Han' Subject: [PATCH] PCI: dra7xx: Add __init annotation to dra7xx_add_pcie_port() Date: Thu, 06 Nov 2014 14:37:39 +0900 Message-id: <001e01cff983$c76f0ed0$564d2c70$%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: Ac/5g8dcixiHt86FSvemt0YY6F6buw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsVy+t8zI11GzugQg3kbFSyWNGVYXF54idXi wtMeNouz846zObB4LNhU6tG3ZRWjx/Eb25k8Pm+SC2CJ4rJJSc3JLEst0rdL4MpoWK9aMI27 oqfjKnsD4w7OLkZODgkBE4k/i16zQthiEhfurWfrYuTiEBJYxijRM38RM0zR7O07mCAS0xkl fn38DlX1i1Fi6ZHD7CBVbAJqEl++QNgiApoSs1dsYQKxmQVyJT5vuQC2QljAV2LN99dsIDaL gKrEhqsrwep5BWwl2hYuYYWwBSV+TL7HAtGrJbF+53GoOfISm9e8BbqIA+gidYlHf3UhVulJ XH99kR2iRERi34t3jCC3SQgsY5e42bOYCWKXgMS3yYdYIHplJTYdgHpMUuLgihssExjFZiHZ PAvJ5llINs9CsmIBI8sqRtHUguSC4qT0IkO94sTc4tK8dL3k/NxNjJAI693BePuA9SFGAQ5G JR5egRNRIUKsiWXFlbmHGE2BLprILCWanA+M47ySeENjMyMLUxNTYyN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mXvFcFak3zygqZo1chFOTx//WvedFlvvk7n22tfF2y9c/UaiWW4oxEQy3mouJE AE/d8E31AgAA 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.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 Add __init annotation to dra7xx_add_pcie_port(), because the dra7xx_add_pcie_port() is called only by dra7xx_pcie_probe() that was already marked as __init. Also, this patch fixes section mismatch warning. WARNING: drivers/pci/host/built-in.o(.text.unlikely+0xcc): Section mismatch in reference from the function dra7xx_add_pcie_port() to the function .init.text:dw_pcie_host_init() The function dra7xx_add_pcie_port() references the function __init dw_pcie_host_init(). This is often because dra7xx_add_pcie_port lacks a __init annotation or the annotation of dw_pcie_host_init is wrong. Signed-off-by: Jingoo Han --- This patch is based on the submitted patch "[PATCH V2] PCI: dra7xx: Add dra7xx prefix before add_pcie_port". drivers/pci/host/pci-dra7xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-dra7xx.c b/drivers/pci/host/pci-dra7xx.c index 5b4a644..8c69697 100644 --- a/drivers/pci/host/pci-dra7xx.c +++ b/drivers/pci/host/pci-dra7xx.c @@ -270,8 +270,8 @@ static irqreturn_t dra7xx_pcie_irq_handler(int irq, void *arg) return IRQ_HANDLED; } -static int dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx, - struct platform_device *pdev) +static int __init dra7xx_add_pcie_port(struct dra7xx_pcie *dra7xx, + struct platform_device *pdev) { int ret; struct pcie_port *pp;