Re: [patch] reduce stack usage of sanitize_e820_map

From: Benjamin LaHaise (
Date: Sat Aug 17 2002 - 14:17:04 EST

On Sat, Aug 17, 2002 at 11:18:11AM -0600, Eric W. Biederman wrote:
> Benjamin LaHaise <> writes:
> > Hello,
> >
> > Currently, sanitize_e820_map uses 0x738 bytes of stack. The patch below
> > moves the arrays into __initdata, reducing stack usage to 0x34 bytes.
> Can we keep the arrays in sanitize_e820_map and just mark then static
> and __initdata? That would appear to be a cleaner solution.
> Polluting the global kernel name space with these is not nice.

Nope. static conflicts with __initdata. If namespace pollution is a
concern, just prefix them with e820_.


"You will be reincarnated as a toad; and you will be much happier."
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:14 EST