All of lore.kernel.org
 help / color / mirror / Atom feed
* COMMAND_LINE_SIZE and CONFIG_FRAME_WARN
@ 2009-11-06 16:08 Atsushi Nemoto
  2009-11-06 16:10 ` Atsushi Nemoto
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Atsushi Nemoto @ 2009-11-06 16:08 UTC (permalink / raw)
  To: linux-mips

Recently COMMAND_LINE_SIZE (CL_SIZE) was extended to 4096 from 512.
(commit 22242681 "MIPS: Extend COMMAND_LINE_SIZE")

This cause warning if something like buf[CL_SIZE] was declared as a
local variable, for example in prom_init_cmdline() on some platforms.

And since many Makefiles in arch/mips enables -Werror, this cause
build failure.

How can we avoid this error?

- do not use local array? (but dynamic allocation cannot be used in
  such an early stage.  static array?)
- are there any way to disable -Wframe-larger-than for the file or function?
- make COMMAND_LINE_SIZE customizable?
- use non default CONFIG_FRAME_WARN?

Any comments or suggestions?
---
Atsushi Nemoto

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-11-07 17:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-06 16:08 COMMAND_LINE_SIZE and CONFIG_FRAME_WARN Atsushi Nemoto
2009-11-06 16:10 ` Atsushi Nemoto
2009-11-06 16:18 ` Wu Zhangjin
2009-11-06 16:22 ` Dmitri Vorobiev
2009-11-06 16:34   ` Dmitri Vorobiev
2009-11-06 16:44     ` Dmitri Vorobiev
2009-11-06 16:44     ` David Daney
2009-11-06 17:07       ` Dmitri Vorobiev
2009-11-06 17:16         ` Maciej W. Rozycki
2009-11-06 17:23           ` Dmitri Vorobiev
2009-11-06 17:30             ` Maciej W. Rozycki
2009-11-06 18:17               ` Dmitri Vorobiev
2009-11-07 17:19                 ` Atsushi Nemoto
2009-11-06 17:09       ` Maciej W. Rozycki
2009-11-06 16:34 ` Maciej W. Rozycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.