MIPS: Make local arrays with CL_SIZE static __initdata

View: New views
1 Messages — Rating Filter:   Alert me  

MIPS: Make local arrays with CL_SIZE static __initdata

by linux-mips main mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: Atsushi Nemoto <anemo@...> Sun Nov 8 02:20:37 2009 +0900
Comitter: Ralf Baechle <ralf@...> Wed Nov 11 14:43:51 2009 +0100
Commit: 30e6802ca4db46db828757b9ba093fe7ff692a58
Gitweb: http://www.linux-mips.org/g/linux/30e6802c
Branch: master

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@...>
Signed-off-by: Ralf Baechle <ralf@...>

---

 arch/mips/bcm47xx/prom.c           |    2 +-
 arch/mips/mti-malta/malta-memory.c |    3 ++-
 arch/mips/rb532/prom.c             |    2 +-
 arch/mips/txx9/generic/setup.c     |    4 ++--
 4 files changed, 6 insertions(+), 5 deletions(-)