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