[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C52F6C1.5090207@mvista.com>
Date: Fri, 30 Jul 2010 19:58:57 +0400
From: Sergei Shtylyov <sshtylyov@...sta.com>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
CC: linux-arm-kernel@...ts.infradead.org,
linux-mtd@...ts.infradead.org, Nicolas Pitre <nico@...vell.com>,
linux-kernel@...r.kernel.org, Julia Lawall <julia@...u.dk>,
Tejun Heo <tj@...nel.org>,
Russell King <rmk+kernel@....linux.org.uk>,
David Woodhouse <dwmw2@...radead.org>
Subject: Re: [PATCH] MTD: pxa2xx: move pxa2xx_flash_probe to .devinit.text
Uwe Kleine-König wrote:
> This fixes the following warning by modpost:
> WARNING: vmlinux.o(.data+0x15018): Section mismatch in reference from the variable pxa2xx_flash_driver to the function .init.text:pxa2xx_flash_probe()
> The variable pxa2xx_flash_driver references
> the function __init pxa2xx_flash_probe()
> 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,
> I choosed to do this instead of using platform_driver_probe as the remove
s/choosed/chose/
> function uses __devexit.
Perhaps remove() method should have been fixed instead -- I doubt that
this is a hotplug device.
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists