mtd: phram: fix section mismatch for phram_setup

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Mar 26 20:59:20 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=b11ec57fc6e6d4882ef01a0c09a1dde58f50492e
Commit:     b11ec57fc6e6d4882ef01a0c09a1dde58f50492e
Parent:     3b27dac03972c10980ec5480ad8425fc95aae9ad
Author:     Ryosuke Saito <raitosyo at gmail.com>
AuthorDate: Wed Mar 21 18:47:47 2012 +0900
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 01:02:29 2012 +0100

    mtd: phram: fix section mismatch for phram_setup
    
    phram_setup() is only called from init_phram() which is in .init.text,
    so it must be in the same section to avoid a section mismatch warning.
    
    Signed-off-by: Ryosuke Saito <raitosyo at gmail.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/devices/phram.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index 3d91ace..67823de 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -215,7 +215,7 @@ static inline void kill_final_newline(char *str)
  */
 static __initdata char phram_paramline[64+12+12];
 
-static int phram_setup(const char *val)
+static int __init phram_setup(const char *val)
 {
 	char buf[64+12+12], *str = buf;
 	char *token[3];



More information about the linux-mtd-cvs mailing list