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/txx9 | |
parent | f8ac04255dc8baa1c018e8028222d842efa56e6b (diff) | |
download | kernel_samsung_espresso10-c4304529543114a5df7eeec31ec5ee5c7c924738.zip kernel_samsung_espresso10-c4304529543114a5df7eeec31ec5ee5c7c924738.tar.gz kernel_samsung_espresso10-c4304529543114a5df7eeec31ec5ee5c7c924738.tar.bz2 |
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/txx9')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index e10184c..d66802e 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c @@ -160,7 +160,7 @@ static void __init prom_init_cmdline(void) int argc; int *argv32; int i; /* Always ignore the "-c" at argv[0] */ - char builtin[CL_SIZE]; + static char builtin[CL_SIZE] __initdata; if (fw_arg0 >= CKSEG0 || fw_arg1 < CKSEG0) { /* @@ -315,7 +315,7 @@ static inline void txx9_cache_fixup(void) static void __init preprocess_cmdline(void) { - char cmdline[CL_SIZE]; + static char cmdline[CL_SIZE] __initdata; char *s; strcpy(cmdline, arcs_cmdline); |