mtd: phram: fix section mismatch for phram_setup
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/mtd/devices/phram.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/devices/phram.c +1 -1
@@ -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 ];
Signature · 1 line
1.7.3.4
Artem Bityutskiy
AppliedQuoted 4 lines · Ryosuke Saito
phram_setup()is only called frominit_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 <[email protected]>
Pushed to l2-mtd.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy