From patchwork Thu Feb 12 06:52:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hao X-Patchwork-Id: 439102 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 A77D4140129 for ; Thu, 12 Feb 2015 17:53:19 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750839AbbBLGxR (ORCPT ); Thu, 12 Feb 2015 01:53:17 -0500 Received: from mail-yh0-f44.google.com ([209.85.213.44]:37086 "EHLO mail-yh0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750834AbbBLGxQ (ORCPT ); Thu, 12 Feb 2015 01:53:16 -0500 Received: by mail-yh0-f44.google.com with SMTP id f73so3715753yha.3 for ; Wed, 11 Feb 2015 22:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DAJlZEXtJrk4x39fz7eCk6mAsQWO/ASyUAC5NQyyeDM=; b=ectqQXr1RNv2lcQ+pxXko2jW2v1wiUCRl3A8dTwffcwMBXfAPMOuAdDEBdD5Fa3NLP bIkKYrc2aydQthYPGWlWX4fCcMVS8hR5/8dXUdkLpcbZXLqTK4pGodziS1EKAV449D2y Y9z0q+ZPQQ86Dkz5PFyR2bXk2BidCcybUsusLPfggOSfL4rG7fPtB4hEttJh1FitK1w+ NWXyjZYDeIom5+KuyaQxRO0lKpNGko80QD7OOZlTyaSYsYx+ol94mt7FbJ8g3eoBLSqu XNAj1y1XHgKTxeVTvczk9D84UHaDt/dy98WFNm615vWOR85ALVNoYExndEtMYcX03+6e 16Xg== X-Received: by 10.170.162.135 with SMTP id e129mr2400214ykd.110.1423723995892; Wed, 11 Feb 2015 22:53:15 -0800 (PST) Received: from pek-khao-d1.corp.ad.wrs.com ([106.120.101.38]) by mx.google.com with ESMTPSA id z23sm2203023yhz.35.2015.02.11.22.53.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 22:53:15 -0800 (PST) From: Kevin Hao To: Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org Subject: [PATCH] gpio: mpc8xxx: remove __initdata annotation for mpc8xxx_gpio_ids[] Date: Thu, 12 Feb 2015 14:52:49 +0800 Message-Id: <1423723969-26931-1-git-send-email-haokexin@gmail.com> X-Mailer: git-send-email 1.9.3 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Since commit 98686d9a52ee ("gpio: mpc8xxx: Convert to platform device interface"), we get the following section mismatch warning. Remove the __initdata annotation to fix it. WARNING: vmlinux.o(.data+0xbc28): 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 Signed-off-by: Kevin Hao --- 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 a6952ba343a8..a65b75161aa4 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 struct of_device_id mpc8xxx_gpio_ids[] = { { .compatible = "fsl,mpc8349-gpio", }, { .compatible = "fsl,mpc8572-gpio", }, { .compatible = "fsl,mpc8610-gpio", },