* Huang, Ying <[EMAIL PROTECTED]> wrote:

> > > -int __initdata early_ioremap_debug;
> > > +int __initbss early_ioremap_debug;
> > 
> > will we get some sort of build error if we accidentally do:
> > 
> >    int __initbss early_ioremap_debug = 1;
> > 
> > ?
> 
> I tested it just now, and there is no build error.

well, that's bad. We'd silently ignore the " = 1" and boot up with that 
value at 0, right? At minimum we need some really prominent build-time 
_errors_ (i.e. aborted builds) if this ever happens. But ideally, 
shouldnt this whole thing be done at link time? Couldnt the linker sort 
the variables that are zero initialized into the right section, and move 
this constant maintenance pressure off the programmer's shoulder?

        Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to