From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] Build fix for kvm/ia64 userspace. Date: Tue, 06 May 2008 17:41:32 +0300 Message-ID: <48206E1C.4040102@qumranet.com> References: <42DFA526FC41B1429CE7279EF83C6BDC01228C71@pdsmsx415.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, kvm-ia64-devel@lists.sourceforge.net To: "Zhang, Xiantao" Return-path: In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDC01228C71@pdsmsx415.ccr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Zhang, Xiantao wrote: > Hi, Avi > This patch should go into RC1, otherwise it will block kvm/ia64 > userspace build. > > diff --git a/include/asm-ia64/kvm.h b/include/asm-ia64/kvm.h > index eb2d355..62b5fad 100644 > --- a/include/asm-ia64/kvm.h > +++ b/include/asm-ia64/kvm.h > @@ -22,7 +22,12 @@ > */ > > #include > + > +#ifdef __KERNEL__ > #include > +#else > +#include > +#endif > Fishy. A kernel header including a userspace header? Maybe you need to include unconditionally? -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone