From patchwork Thu Feb 12 21:53:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Medve X-Patchwork-Id: 439348 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 62602140151 for ; Fri, 13 Feb 2015 09:32:37 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751744AbbBLWcg (ORCPT ); Thu, 12 Feb 2015 17:32:36 -0500 Received: from mail-bn1bn0109.outbound.protection.outlook.com ([157.56.110.109]:36410 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750959AbbBLWcf (ORCPT ); Thu, 12 Feb 2015 17:32:35 -0500 Received: from BY2PR0301MB0743.namprd03.prod.outlook.com (25.160.63.21) by BY2PR0301MB0613.namprd03.prod.outlook.com (25.160.125.23) with Microsoft SMTP Server (TLS) id 15.1.87.13; Thu, 12 Feb 2015 21:58:01 +0000 Received: from DM2PR03CA0048.namprd03.prod.outlook.com (10.141.96.47) by BY2PR0301MB0743.namprd03.prod.outlook.com (25.160.63.21) with Microsoft SMTP Server (TLS) id 15.1.81.19; Thu, 12 Feb 2015 21:57:59 +0000 Received: from BN1AFFO11FD022.protection.gbl (2a01:111:f400:7c10::126) by DM2PR03CA0048.outlook.office365.com (2a01:111:e400:2428::47) with Microsoft SMTP Server (TLS) id 15.1.87.13 via Frontend Transport; Thu, 12 Feb 2015 21:57:59 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD022.mail.protection.outlook.com (10.58.52.82) with Microsoft SMTP Server (TLS) id 15.1.87.10 via Frontend Transport; Thu, 12 Feb 2015 21:57:57 +0000 Received: from right.am.freescale.net (right.am.freescale.net [10.81.116.70]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t1CLvuJ0009108; Thu, 12 Feb 2015 14:57:56 -0700 From: Emil Medve To: , , , , CC: Emil Medve Subject: [PATCH] gpio: mpc8xxx: Fix section mistmatch(es) Date: Thu, 12 Feb 2015 15:53:14 -0600 Message-ID: <1423777994-17925-1-git-send-email-Emilian.Medve@Freescale.com> X-Mailer: git-send-email 2.3.0 X-EOPAttributedMessage: 0 Received-SPF: Fail (protection.outlook.com: domain of Freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Emilian.Medve@Freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(6806004)(50226001)(87936001)(77096005)(19580405001)(19580395003)(50466002)(2201001)(48376002)(85426001)(46102003)(50986999)(86362001)(92566002)(106466001)(105606002)(36756003)(104016003)(47776003)(229853001)(77156002)(62966003)(32563001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0743; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0743; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:BY2PR0301MB0743; X-Forefront-PRVS: 0485417665 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0743; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2015 21:57:57.9821 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0743 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0613; X-OriginatorOrg: freescale.com Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org WARNING: drivers/gpio/built-in.o(.text+0x3962): Section mismatch in reference from the function mpc8xxx_probe() to the variable .init.data:mpc8xxx_gpio_ids The function mpc8xxx_probe() references the variable __initdata mpc8xxx_gpio_ids. This is often because mpc8xxx_probe lacks a __initdata annotation or the annotation of mpc8xxx_gpio_ids is wrong. WARNING: drivers/gpio/built-in.o(.text+0x396a): Section mismatch in reference from the function mpc8xxx_probe() to the variable .init.data:mpc8xxx_gpio_ids The function mpc8xxx_probe() references the variable __initdata mpc8xxx_gpio_ids. This is often because mpc8xxx_probe lacks a __initdata annotation or the annotation of mpc8xxx_gpio_ids is wrong. WARNING: drivers/gpio/built-in.o(.data+0x48): Section mismatch in reference from the variable mpc8xxx_plat_driver to the variable .init.data:mpc8xxx_gpio_ids The variable mpc8xxx_plat_driver references the variable __initdata mpc8xxx_gpio_ids 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 Introduced in '98686d9a5 gpio: mpc8xxx: Convert to platform device interface' Signed-off-by: Emil Medve --- drivers/gpio/gpio-mpc8xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index a6952ba3..59c4c11 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -334,7 +334,7 @@ static struct irq_domain_ops mpc8xxx_gpio_irq_ops = { .xlate = irq_domain_xlate_twocell, }; -static struct of_device_id mpc8xxx_gpio_ids[] __initdata = { +static const struct of_device_id mpc8xxx_gpio_ids[] = { { .compatible = "fsl,mpc8349-gpio", }, { .compatible = "fsl,mpc8572-gpio", }, { .compatible = "fsl,mpc8610-gpio", },