From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755068Ab3A1IcZ (ORCPT ); Mon, 28 Jan 2013 03:32:25 -0500 Received: from eusmtp01.atmel.com ([212.144.249.242]:62127 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754976Ab3A1IcW (ORCPT ); Mon, 28 Jan 2013 03:32:22 -0500 Message-ID: <51063791.9090606@atmel.com> Date: Mon, 28 Jan 2013 09:32:17 +0100 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Arnd Bergmann CC: , , Wim Van Sebroeck , , "Fabio Porcedda" Subject: Re: [PATCH 10/19] watchdog: at91sam9: at91_wdt_dt_ids cannot be __init References: <1359123276-15833-1-git-send-email-arnd@arndb.de> <1359153858-31992-1-git-send-email-arnd@arndb.de> <1359153858-31992-11-git-send-email-arnd@arndb.de> In-Reply-To: <1359153858-31992-11-git-send-email-arnd@arndb.de> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/25/2013 11:44 PM, Arnd Bergmann : > The device IDs are referenced by the driver and potentially > used beyond the init time, as kbuild correctly warns > about. Remove the __initconst annotation. > > Without this patch, building at91_dt_defconfig results in: > > WARNING: drivers/watchdog/built-in.o(.data+0x28): Section mismatch in reference from the variable at91wdt_driver to the (unknown reference) .init.rodata:(unknown) > The variable at91wdt_driver references > the (unknown reference) __initconst (unknown) > > Signed-off-by: Arnd Bergmann > Cc: Wim Van Sebroeck > Cc: linux-watchdog@vger.kernel.org > Cc: Nicolas Ferre Acked-by: Nicolas Ferre Thanks, > Cc: Fabio Porcedda > --- > drivers/watchdog/at91sam9_wdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c > index dc42e44..6dad954 100644 > --- a/drivers/watchdog/at91sam9_wdt.c > +++ b/drivers/watchdog/at91sam9_wdt.c > @@ -304,7 +304,7 @@ static int __exit at91wdt_remove(struct platform_device *pdev) > } > > #if defined(CONFIG_OF) > -static const struct of_device_id at91_wdt_dt_ids[] __initconst = { > +static const struct of_device_id at91_wdt_dt_ids[] = { > { .compatible = "atmel,at91sam9260-wdt" }, > { /* sentinel */ } > }; > -- Nicolas Ferre