From patchwork Thu Aug 28 16:44:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 4805641 Return-Path: X-Original-To: patchwork-dmaengine@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 83263C0338 for ; Thu, 28 Aug 2014 16:44:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 78B5020117 for ; Thu, 28 Aug 2014 16:44:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54E98200FE for ; Thu, 28 Aug 2014 16:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750943AbaH1Qo4 (ORCPT ); Thu, 28 Aug 2014 12:44:56 -0400 Received: from mail-by2lp0238.outbound.protection.outlook.com ([207.46.163.238]:30152 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750941AbaH1Qoz (ORCPT ); Thu, 28 Aug 2014 12:44:55 -0400 Received: from BN3PR0301CA0055.namprd03.prod.outlook.com (25.160.152.151) by BLUPR03MB248.namprd03.prod.outlook.com (10.255.213.26) with Microsoft SMTP Server (TLS) id 15.0.1015.19; Thu, 28 Aug 2014 16:44:53 +0000 Received: from BY2FFO11FD034.protection.gbl (2a01:111:f400:7c0c::120) by BN3PR0301CA0055.outlook.office365.com (2a01:111:e400:401e::23) with Microsoft SMTP Server (TLS) id 15.0.1015.19 via Frontend Transport; Thu, 28 Aug 2014 16:44:53 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD034.mail.protection.outlook.com (10.1.14.219) with Microsoft SMTP Server (TLS) id 15.0.1010.11 via Frontend Transport; Thu, 28 Aug 2014 16:44:53 +0000 Received: from fabio-Latitude-E6410.am.freescale.net ([10.29.244.97]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s7SGioas015472; Thu, 28 Aug 2014 09:44:51 -0700 From: Fabio Estevam To: CC: , , Fabio Estevam Subject: [PATCH] dma: imx-sdma: Fix section mismatch Date: Thu, 28 Aug 2014 13:44:38 -0300 Message-ID: <1409244278-24916-1-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(199003)(189002)(97736001)(85306004)(104166001)(77156001)(81542001)(88136002)(85852003)(4396001)(50226001)(21056001)(89996001)(64706001)(47776003)(31966008)(68736004)(69596002)(20776003)(83322001)(19580405001)(19580395003)(81342001)(93916002)(77982001)(50466002)(46102001)(79102001)(48376002)(76482001)(6806004)(102836001)(83072002)(86362001)(92566001)(74502001)(50986999)(26826002)(92726001)(74662001)(99396002)(36756003)(62966002)(87286001)(104016003)(87936001)(105606002)(33646002)(84676001)(95666004)(2351001)(90102001)(44976005)(80022001)(229853001)(110136001)(106466001)(81156004)(107046002); DIR:OUT; SFP:; SCL:1; SRVR:BLUPR03MB248; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 031763BCAF Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Fabio.Estevam@freescale.com; X-OriginatorOrg: freescale.com Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Remove the __init annotation from sdma_probe in order to fix the following warning: WARNING: drivers/dma/built-in.o(.data+0x2f4): Section mismatch in reference from the variable sdma_driver to the function .init.text:sdma_probe() The variable sdma_driver references the function __init sdma_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_consol Signed-off-by: Fabio Estevam --- drivers/dma/imx-sdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index c615e88..52ce1d2 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1448,7 +1448,7 @@ static struct dma_chan *sdma_xlate(struct of_phandle_args *dma_spec, return dma_request_channel(mask, sdma_filter_fn, &data); } -static int __init sdma_probe(struct platform_device *pdev) +static int sdma_probe(struct platform_device *pdev) { const struct of_device_id *of_id = of_match_device(sdma_dt_ids, &pdev->dev);