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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux