diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2009-11-08 02:20:37 +0900 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-11-13 18:10:37 +0100 |
commit | c4304529543114a5df7eeec31ec5ee5c7c924738 (patch) | |
tree | 4453815cc058c35dfc488a2cae6d7cafb0c82192 /arch/mips/rb532 | |
parent | f8ac04255dc8baa1c018e8028222d842efa56e6b (diff) | |
download | blackbird-op-linux-c4304529543114a5df7eeec31ec5ee5c7c924738.tar.gz blackbird-op-linux-c4304529543114a5df7eeec31ec5ee5c7c924738.zip |
MIPS: Make local arrays with CL_SIZE static __initdata
Since commit 22242681cff52bfb7cba5d2a37b91802be7a4e4c ("MIPS: Extend
COMMAND_LINE_SIZE"), CL_SIZE is 4096 and local array variables with this
size will cause an build failure with default CONFIG_FRAME_WARN settings.
Although current users of such array variables are all early bootstrap
code and not likely to cause real stack overflow (thread_info corruption),
it is preferable to to declare these arrays static with __initdata.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/rb532')
-rw-r--r-- | arch/mips/rb532/prom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/rb532/prom.c b/arch/mips/rb532/prom.c index 46ca24dbcc2d..ad5bd1097974 100644 --- a/arch/mips/rb532/prom.c +++ b/arch/mips/rb532/prom.c @@ -69,7 +69,7 @@ static inline unsigned long tag2ul(char *arg, const char *tag) void __init prom_setup_cmdline(void) { - char cmd_line[CL_SIZE]; + static char cmd_line[CL_SIZE] __initdata; char *cp, *board; int prom_argc; char **prom_argv, **prom_envp; |