From patchwork Thu Nov 6 05:38:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 5239181 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 CBE37C11AC for ; Thu, 6 Nov 2014 05:37:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12F7F200F3 for ; Thu, 6 Nov 2014 05:37:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CABD1200FF for ; Thu, 6 Nov 2014 05:37:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751151AbaKFFhy (ORCPT ); Thu, 6 Nov 2014 00:37:54 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:36162 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbaKFFhx (ORCPT ); Thu, 6 Nov 2014 00:37:53 -0500 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEL008SORMWTUD0@mailout2.samsung.com> for linux-pci@vger.kernel.org; Thu, 06 Nov 2014 14:37:45 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 5D.C8.18484.8290B545; Thu, 06 Nov 2014 14:37:44 +0900 (KST) X-AuditID: cbfee68f-f791c6d000004834-87-545b09285a0f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 5E.F6.20081.8290B545; Thu, 06 Nov 2014 14:37:44 +0900 (KST) Received: from DOJG1HAN03 ([10.89.38.123]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NEL008LURMWZDR1@mmp1.samsung.com>; Thu, 06 Nov 2014 14:37:44 +0900 (KST) From: Jingoo Han To: 'Bjorn Helgaas' Cc: linux-pci@vger.kernel.org, 'Mohit Kumar' , 'Viresh Kumar' , 'Pratyush Anand' , 'Jingoo Han' Subject: [PATCH] PCI: spear: Add __init annotation to spear13xx_add_pcie_port() Date: Thu, 06 Nov 2014 14:38:18 +0900 Message-id: <001f01cff983$deb4da20$9c1e8e60$%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/5g96hZbkH1tGdTzioDr/KyAfkjQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFIsWRmVeSWpSXmKPExsVy+t8zfV0NzugQg/dfzC2WNGVYvDykaXF5 4SVWi7PzjrNZbJz6i9Gi/ZKyxcavHg7sHgs2lXrcubaHzaNvyypGj6c/9jJ7fN4kF8AaxWWT kpqTWZZapG+XwJXxfMJvpoJL3BUnNxxibWD8wtnFyMkhIWAicfvpKTYIW0ziwr31QDYXh5DA MkaJv4cfsMEUtd2exAqRWMQo0dV7hRkkISTwi1Hi2U9WEJtNQE3iy5fD7CC2iICmxOwVW5hA GpgF9jJK/LrQAFYkLOAv0bhyDQuIzSKgKnG17QsTiM0rYCuxfP9fRghbUOLH5HtgNcwCWhLr dx5ngrDlJTaveQu0mAPoInWJR391IXbpSdw80soKUSIise/FO0aQvRICp9glrvx8zgaxS0Di 2+RDLBC9shKbDjBDPCYpcXDFDZYJjGKzkGyehWTzLCSbZyFZsYCRZRWjaGpBckFxUnqRsV5x Ym5xaV66XnJ+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887UoD/7KbEiVXzlKJ2T5NImOMZflfG+GXf7NVHltTOtXGasfadlVgI+6dkJbOZ KXrqDBk7doULXWVgSv+wT2RFAmN59dkb02KCdvhsNpk34e7teUn9WjFNtz8vPmFnp6cVGi97 TFevbc52uRXCG8yeeyuxFGckGmoxFxUnAgBpJncbBwMAAA== 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 spear13xx_add_pcie_port(), because the spear13xx_add_pcie_port() is called only by spear13xx_pcie_probe() that was already marked as __init. Also, this patch fixes section mismatch warning. WARNING: drivers/pci/host/built-in.o(.text.unlikely+0x94): Section mismatch in reference from the function spear13xx_add_pcie_port() to the function .init.text:dw_pcie_host_init() The function spear13xx_add_pcie_port() references the function __init dw_pcie_host_init(). This is often because spear13xx_add_pcie_port lacks a __init annotation or the annotation of dw_pcie_host_init is wrong. Signed-off-by: Jingoo Han Acked-by: Viresh Kumar --- This patch is based on the submitted patch "[PATCH V2] PCI: spear: Add spear13xx before add_pcie_port/pcie_initt". drivers/pci/host/pcie-spear13xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c index 63f869f..60f43cd 100644 --- a/drivers/pci/host/pcie-spear13xx.c +++ b/drivers/pci/host/pcie-spear13xx.c @@ -269,8 +269,8 @@ static struct pcie_host_ops spear13xx_pcie_host_ops = { .host_init = spear13xx_pcie_host_init, }; -static int spear13xx_add_pcie_port(struct pcie_port *pp, - struct platform_device *pdev) +static int __init spear13xx_add_pcie_port(struct pcie_port *pp, + struct platform_device *pdev) { struct device *dev = &pdev->dev; int ret;