From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emil Medve Subject: Re: [PATCH] gpio: mpc8xxx: Fix section mistmatch(es) Date: Thu, 12 Feb 2015 16:02:14 -0600 Message-ID: <54DD22E6.7040803@Freescale.com> References: <1423777994-17925-1-git-send-email-Emilian.Medve@Freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bn1bon0110.outbound.protection.outlook.com ([157.56.111.110]:42825 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751188AbbBLWDl (ORCPT ); Thu, 12 Feb 2015 17:03:41 -0500 In-Reply-To: <1423777994-17925-1-git-send-email-Emilian.Medve@Freescale.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: linux-gpio@vger.kernel.org, jacmet@sunsite.dk, ricardo.ribalda@gmail.com, linus.walleij@linaro.org, gnurou@gmail.com On 02/12/2015 03:53 PM, Emil Medve wrote: > 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(-) Just noticed http://patchwork.ozlabs.org/patch/439102. Just ignore this