Re: [PATCH][trivial] crypto: tcrypt - reduce stack size

From: Thiago Galesi
Date: Wed Feb 25 2009 - 09:29:32 EST


On Wed, Feb 25, 2009 at 11:24 AM, Frank Seidel <fseidel@xxxxxxx> wrote:
> Herbert Xu wrote:
>>> -    char output[1024];
>>
>> How about just making it static?
>
> Well, it was static before. But there
> are efforts to reduce current stack memory
> footprints.

If you write static char output[1024]; (even inside a function) it's
not allocated on the stack.

--
-
Thiago Galesi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/