From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: compile error Date: Fri, 01 Jun 2007 09:29:26 +0300 Message-ID: <465FBCC6.9010205@qumranet.com> References: <10EA09EFD8728347A513008B6B0DA77A01888A23@pdsmsx411.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: "Zhao, Yunfeng" Return-path: In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A01888A23-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Zhao, Yunfeng wrote: > > I met an error when i build latest KVM on rhel5. > > Seems asm/cmpxchg.h is not in the kernel before 2.6.22. > > How can I fix the issue? > > > Add a kernel/include/linux/asm/cmpxchg.h, which defines set_64bit() for both i386 and x86_64. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/