Re: [PATCH 1/6] printk: Allocate kernel log buffer earlier

From: Andrew Morton
Date: Thu Jan 20 2011 - 19:08:09 EST


On Thu, 20 Jan 2011 15:55:30 -0800
Mike Travis <travis@xxxxxxx> wrote:

> If I have:
>
> void __init setup(void)
> {
> static int data;
> ...
>
> Does data automatically get put into the initdata section? Or does
> it need the __initdata tag as well?

It needs __initdata. gcc doesn't know that __init and __initdata are
related things - as far as the compiler is concerned, they're all just
sections.

--
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/