lkml.org 
[lkml]   [2011]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/6] printk: Allocate kernel log buffer earlier
On Thu, 20 Jan 2011 15:55:30 -0800
Mike Travis <travis@sgi.com> 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.



\
 
 \ /
  Last update: 2011-01-21 01:11    [W:0.049 / U:8.728 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site