From patchwork Thu Mar 13 21:08:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 3828761 Return-Path: X-Original-To: patchwork-linux-arm@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 625BB9F2BB for ; Thu, 13 Mar 2014 21:10:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7DB07201BB for ; Thu, 13 Mar 2014 21:10:46 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 510072018A for ; Thu, 13 Mar 2014 21:10:45 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOCtl-0005Iq-8V; Thu, 13 Mar 2014 21:10:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOCti-00081P-PR; Thu, 13 Mar 2014 21:10:38 +0000 Received: from mail-bn1bon0787.outbound.protection.outlook.com ([2a01:111:f400:fc10::1:787] helo=na01-bn1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WOCtc-00080k-Q3 for linux-arm-kernel@lists.infradead.org; Thu, 13 Mar 2014 21:10:36 +0000 Received: from BY2FFO11FD064.protection.gbl (10.1.14.32) by BY2FFO11HUB036.protection.gbl (10.1.14.179) with Microsoft SMTP Server (TLS) id 15.0.888.9; Thu, 13 Mar 2014 21:10:08 +0000 Received: from SJ-ITEXEDGE02.altera.priv.altera.com (66.35.236.232) by BY2FFO11FD064.mail.protection.outlook.com (10.1.15.198) with Microsoft SMTP Server (TLS) id 15.0.888.9 via Frontend Transport; Thu, 13 Mar 2014 21:10:08 +0000 Received: from sj-mail01.altera.com (137.57.1.6) by SJ-ITEXEDGE02.altera.priv.altera.com (66.35.236.232) with Microsoft SMTP Server id 8.3.342.0; Thu, 13 Mar 2014 13:57:15 -0700 Received: from linux-builds1.altera.com (linux-builds1.altera.com [137.57.188.114]) by sj-mail01.altera.com (8.13.7+Sun/8.13.7) with ESMTP id s2DLA7x9016451; Thu, 13 Mar 2014 14:10:07 -0700 (PDT) From: To: , Subject: [PATCH] clk: socfpga: Fix section mismatch warning Date: Thu, 13 Mar 2014 16:08:01 -0500 Message-ID: <1394744881-15254-1-git-send-email-dinguyen@altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: =?us-ascii?Q?CIP:66.35.236.232; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(1001?= =?us-ascii?Q?9001)(979002)(6009001)(448001)(189002)(199002)(47776003)(195?= =?us-ascii?Q?80395003)(63696002)(20776003)(6806004)(44976005)(83322001)(1?= =?us-ascii?Q?9580405001)(80022001)(83072002)(88136002)(85852003)(74876001?= =?us-ascii?Q?)(80976001)(53416003)(56816005)(51856001)(59766001)(77982001?= =?us-ascii?Q?)(36756003)(46102001)(95666003)(56776001)(54316002)(97336001?= =?us-ascii?Q?)(79102001)(53806001)(92566001)(77096001)(77156001)(76482001?= =?us-ascii?Q?)(97186001)(47446002)(49866001)(74366001)(93916002)(50226001?= =?us-ascii?Q?)(95416001)(50986001)(81542001)(81342001)(47736001)(81686001?= =?us-ascii?Q?)(81816001)(76176001)(69226001)(76796001)(76786001)(93136001?= =?us-ascii?Q?)(92726001)(85306002)(85326001)(74662001)(87286001)(87266001?= =?us-ascii?Q?)(50466002)(47976001)(31966008)(94316002)(33646001)(4396001)?= =?us-ascii?Q?(94946001)(87936001)(86152002)(62966002)(74706001)(65816001)?= =?us-ascii?Q?(48376002)(74502001)(93516002)(86362001)(90146001)(89996001)?= =?us-ascii?Q?(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; ?= =?us-ascii?Q?SCL:1; SRVR:BY2FFO11HUB036; H:SJ-ITEXEDGE02.altera.priv.altera?= =?us-ascii?Q?.com; CLIP:66.35.236.232; FPR:FCA863AE.CF14CFC3.B1DDEF03.44248?= =?us-ascii?Q?262.201B3; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LAN?= =?us-ascii?Q?G:en;?= X-OriginatorOrg: altera.onmicrosoft.com X-Forefront-PRVS: 01494FA7F7 Received-SPF: PermError (: domain of altera.com used an invalid SPF mechanism) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140313_171035_194937_06515851 X-CRM114-Status: GOOD ( 10.34 ) X-Spam-Score: -1.9 (-) Cc: Dinh Nguyen , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_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 From: Dinh Nguyen WARNING: drivers/clk/socfpga/built-in.o(.data+0xc0): Section mismatch in reference from the variable socfpga_child_clocks to the function .init.text:socfpga_pll_init() The variable socfpga_child_clocks references the function __init socfpga_pll_init() 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, *_console WARNING: drivers/clk/socfpga/built-in.o(.data+0x184): Section mismatch in reference from the variable socfpga_child_clocks to the function .init.text:socfpga_periph_init() The variable socfpga_child_clocks references the function __init socfpga_periph_init() 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, *_console WARNING: drivers/clk/socfpga/built-in.o(.data+0x248): Section mismatch in reference from the variable socfpga_child_clocks to the function .init.text:socfpga_gate_init() The variable socfpga_child_clocks references the function __init socfpga_gate_init() 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, *_console Reported-by: Mike Turquette Signed-off-by: Dinh Nguyen --- drivers/clk/socfpga/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c index 6217d5d..35a960a 100644 --- a/drivers/clk/socfpga/clk.c +++ b/drivers/clk/socfpga/clk.c @@ -28,7 +28,7 @@ void __iomem *clk_mgr_base_addr; -static struct of_device_id socfpga_child_clocks[] = { +static const struct of_device_id socfpga_child_clocks[] __initconst = { { .compatible = "altr,socfpga-pll-clock", socfpga_pll_init, }, { .compatible = "altr,socfpga-perip-clk", socfpga_periph_init, }, { .compatible = "altr,socfpga-gate-clk", socfpga_gate_init, },