mtd: maps/sa1100: fix section mismatch

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Oct 18 17:59:01 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=5a134239e707b23c65948f41f40b828d40e440af
Commit:     5a134239e707b23c65948f41f40b828d40e440af
Parent:     82613b0da622efbd24cb7b23eb349966802310f1
Author:     Dmitry Artamonow <mad_soft at inbox.ru>
AuthorDate: Fri Oct 9 12:18:49 2009 +0400
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Oct 17 15:37:13 2009 +0100

    mtd: maps/sa1100: fix section mismatch
    
    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 at inbox.ru>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 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 d7a4757..f3af87e 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;



More information about the linux-mtd-cvs mailing list