* [PATCH] mtd: maps/sa1100: fix section mismatch
@ 2009-10-09 8:18 Dmitry Artamonow
2009-10-11 13:41 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Artamonow @ 2009-10-09 8:18 UTC (permalink / raw)
To: linux-arm-kernel
Commit f0b1e589 changed sa1100_mtd_probe from __init to __devinit,
but missed to correct sa1100_setup_mtd definition accordingly, which
causes following warning:
WARNING: vmlinux.o(.devinit.text+0xf4): Section mismatch in reference from
the function sa1100_mtd_probe() to the function .init.text:sa1100_setup_mtd()
The function __devinit sa1100_mtd_probe() references
a function __init sa1100_setup_mtd().
If sa1100_setup_mtd is only used by sa1100_mtd_probe then
annotate sa1100_setup_mtd with a matching annotation.
Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
---
drivers/mtd/maps/sa1100-flash.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index fdb97f3..b1cf17b 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -248,7 +248,7 @@ static void sa1100_destroy(struct sa_info *info, struct flash_platform_data *pla
plat->exit();
}
-static struct sa_info *__init
+static struct sa_info *__devinit
sa1100_setup_mtd(struct platform_device *pdev, struct flash_platform_data *plat)
{
struct sa_info *info;
--
1.6.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] mtd: maps/sa1100: fix section mismatch
2009-10-09 8:18 [PATCH] mtd: maps/sa1100: fix section mismatch Dmitry Artamonow
@ 2009-10-11 13:41 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2009-10-11 13:41 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, 2009-10-09 at 12:18 +0400, Dmitry Artamonow wrote:
> Commit f0b1e589 changed sa1100_mtd_probe from __init to __devinit,
> but missed to correct sa1100_setup_mtd definition accordingly, which
> causes following warning:
>
> WARNING: vmlinux.o(.devinit.text+0xf4): Section mismatch in reference from
> the function sa1100_mtd_probe() to the function .init.text:sa1100_setup_mtd()
> The function __devinit sa1100_mtd_probe() references
> a function __init sa1100_setup_mtd().
> If sa1100_setup_mtd is only used by sa1100_mtd_probe then
> annotate sa1100_setup_mtd with a matching annotation.
>
> Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Added to my l2-mtd-2.6.git tree:
http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/232216ec8d423a222ae113bd15691d66a1e6d957
--
Best Regards,
Artem Bityutskiy (????? ????????)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-11 13:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 8:18 [PATCH] mtd: maps/sa1100: fix section mismatch Dmitry Artamonow
2009-10-11 13:41 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).