Re: [PATCH] -mm: acpi idle __read_mostly and de-init static var

From: Roman Zippel
Date: Wed Apr 19 2006 - 06:02:22 EST


Hi,

On Tue, 18 Apr 2006, Andrew Morton wrote:

> Andreas Mohr <andi@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > - don't remove static init value of nocst and bm_history
> > since __read_mostly may be special
> > (see e.g. http://www.ussg.iu.edu/hypermail/linux/kernel/0010.0/0771.html)
> >
>
> hm, that was six years ago. I'm vaguely surprised that the initialisation
> was needed even then. It isn't needed now. Or if it is, we need to find
> out why and fix it.

I guess 2.7.2 was still a valid compiler then. :)
All later versions don't behave like this, although it's still documented
like this: http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html

bye, Roman
-
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/