From: Keir Fraser Subject: Re: [PATCH] x86: move some function scope statics into .init.data Date: Wed, 21 Dec 2011 08:13:23 +0000 Message-ID: References: <4EF1A2AB02000078000694B1@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4EF1A2AB02000078000694B1@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 21/12/2011 08:11, "Jan Beulich" wrote: > Signed-off-by: Jan Beulich Acked-by: Keir Fraser > --- a/xen/arch/x86/setup.c > +++ b/xen/arch/x86/setup.c > @@ -486,7 +486,7 @@ static void __init kexec_reserve_area(st > { > unsigned long kdump_start = kexec_crash_area.start; > unsigned long kdump_size = kexec_crash_area.size; > - static int is_reserved = 0; > + static bool_t __initdata is_reserved = 0; > > kdump_size = (kdump_size + PAGE_SIZE - 1) & PAGE_MASK; > > @@ -1330,7 +1330,7 @@ void __init __start_xen(unsigned long mb > cmdline = (char *)(mod[0].string ? __va(mod[0].string) : NULL); > if ( (cmdline != NULL) || (kextra != NULL) ) > { > - static char dom0_cmdline[MAX_GUEST_CMDLINE]; > + static char __initdata dom0_cmdline[MAX_GUEST_CMDLINE]; > > cmdline = cmdline_cook(cmdline, loader); > safe_strcpy(dom0_cmdline, cmdline); > @@ -1430,7 +1430,7 @@ int __init xen_in_range(unsigned long mf > enum { region_s3, region_text, region_bss, nr_regions }; > static struct { > paddr_t s, e; > - } xen_regions[nr_regions]; > + } xen_regions[nr_regions] __initdata; > > /* initialize first time */ > if ( !xen_regions[0].s ) > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel