* [PATCH] mtd: phram: fix section mismatch for phram_setup
@ 2012-03-21 9:47 Ryosuke Saito
2012-03-21 14:42 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Ryosuke Saito @ 2012-03-21 9:47 UTC (permalink / raw)
To: artem.bityutskiy; +Cc: linux-mtd, linux-kernel, h-fache
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@gmail.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];
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: phram: fix section mismatch for phram_setup
2012-03-21 9:47 [PATCH] mtd: phram: fix section mismatch for phram_setup Ryosuke Saito
@ 2012-03-21 14:42 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-03-21 14:42 UTC (permalink / raw)
To: Ryosuke Saito; +Cc: linux-mtd, linux-kernel, h-fache
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
On Wed, 2012-03-21 at 18:47 +0900, Ryosuke Saito wrote:
> 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@gmail.com>
Pushed to l2-mtd.git, thanks!
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-21 14:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-21 9:47 [PATCH] mtd: phram: fix section mismatch for phram_setup Ryosuke Saito
2012-03-21 14:42 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox