From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: [patch 04/26] Xen-paravirt_ops: Add pagetable accessors to pack and unpack pagetable entries Date: Tue, 27 Feb 2007 10:52:31 -0800 Message-ID: <45E47DEF.70405@goop.org> References: <20070227081337.434798469@goop.org> <20070227081630.311681690@goop.org> <20070227100850.GA10827@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070227100850.GA10827@elte.hu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ingo Molnar Cc: Zachary Amsden , xen-devel@lists.xensource.com, virtualization@lists.osdl.org, Rusty Russell , linux-kernel@vger.kernel.org, Chris Wright , Andi Kleen , Andrew Morton List-Id: virtualization@lists.linuxfoundation.org Ingo Molnar wrote: > * Jeremy Fitzhardinge wrote: > > >> =================================================================== >> --- a/arch/i386/kernel/vmlinux.lds.S >> +++ b/arch/i386/kernel/vmlinux.lds.S >> @@ -21,6 +21,9 @@ >> #include >> #include >> #include >> + >> +#undef ENTRY >> +#undef ALIGN >> > > hm, what's this? The reason is not documented. > Good point; I'll add some comments. The reason is that asm/linkage.h ends up being included as a result of the other header file changes, and it conflicts with the use of ENTRY and ALIGN here. But its possible that asm/linkage isn't needed anymore; that would be ideal if true. >> +#ifdef CONFIG_PARAVIRT >> +/* After pte_t, etc, have been defined */ >> +#include >> +#endif >> > > hm - there's already a CONFIG_PARAVIRT conditional in > asm-i386/paravirt.h. > Yes, but it happens after asm/paravirt.h has already included some things, and it ends up causing problems. paravirt.h still defines various stub functions in the !CONFIG_PARAVIRT case, so it needs to do the includes either way. J