| To: | David Daney <ddaney@caviumnetworks.com> |
|---|---|
| Subject: | Re: COMMAND_LINE_SIZE and CONFIG_FRAME_WARN |
| From: | "Maciej W. Rozycki" <macro@linux-mips.org> |
| Date: | Fri, 6 Nov 2009 17:09:44 +0000 (GMT) |
| Cc: | Dmitri Vorobiev <dmitri.vorobiev@gmail.com>, Atsushi Nemoto <anemo@mba.ocn.ne.jp>, linux-mips@linux-mips.org |
| In-reply-to: | <4AF4526B.3020502@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20091107.010839.246840249.anemo@mba.ocn.ne.jp> <90edad820911060822g40233a8ft28001d68186b989e@mail.gmail.com> <90edad820911060834t5c14aa30t847c3b75bf7e36e@mail.gmail.com> <4AF4526B.3020502@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Alpine 2.00 (LFD 1167 2008-08-23) |
On Fri, 6 Nov 2009, David Daney wrote: > It depends on your concerns. You are still using 4096 bytes of stack, > but you are trying to trick the compiler into not warning. > > If you think the warning is bogus, you should remove it for all code, > not just this file. If you think the warning is valid, then you should > fix the code so that it doesn't use as much stack space. My understanding is the option is for detecting unintended excessive use of stack space. If a place is known to require more space, it is justified and harmless (such as in an early bootstrap call), then I see no reason to forbid it or to imply it should be allowed globally then. Note that stack space of 4096 bytes required by a single call is functionally equivalent to four nested calls requiring 1024 bytes each, so from the practical point of view they are equivalent and during kernel startup we may know that nesting is less extensive than, say, when a syscall or an interrupt handler is being executed, where such stack consumption would be of much more concern. Maciej |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: COMMAND_LINE_SIZE and CONFIG_FRAME_WARN, Dmitri Vorobiev |
|---|---|
| Next by Date: | Re: COMMAND_LINE_SIZE and CONFIG_FRAME_WARN, Maciej W. Rozycki |
| Previous by Thread: | Re: COMMAND_LINE_SIZE and CONFIG_FRAME_WARN, Atsushi Nemoto |
| Next by Thread: | Re: COMMAND_LINE_SIZE and CONFIG_FRAME_WARN, Maciej W. Rozycki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |