From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] kvm-kmod vma_kernel_pagesize compatability Date: Sun, 23 Aug 2009 12:00:56 +0300 Message-ID: <4A910548.1040104@redhat.com> References: <4A8F3E00.9090103@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Eduardo Habkost , kvm@vger.kernel.org To: Zachary Amsden Return-path: Received: from mx1.redhat.com ([209.132.183.28]:31643 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755869AbZHWJA7 (ORCPT ); Sun, 23 Aug 2009 05:00:59 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7N910ea005560 for ; Sun, 23 Aug 2009 05:01:01 -0400 In-Reply-To: <4A8F3E00.9090103@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/22/2009 03:38 AM, Zachary Amsden wrote: > Make vma_kernel_pagesize a kvm compat API; this fixes the build with > new kernels synced to 2.6.31 compiling externally for older systems. > Applied, thanks. > > Signed-off-by: Zachary Amsden > > diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h > index 3a31d51..da1a4f0 100644 > --- a/external-module-compat-comm.h > +++ b/external-module-compat-comm.h > @@ -958,7 +958,7 @@ static inline int kvm_eventfd_signal(struct eventfd_ctx *ctx, int n) > #if LINUX_VERSION_CODE< KERNEL_VERSION(2,6,31) > > static inline > -unsigned long vma_kernel_pagesize(struct vm_area_struct *vma) > +unsigned long kvm_vma_kernel_pagesize(struct vm_area_struct *vma) > { > struct hstate *hstate; > > A #else was missing, which I added. -- error compiling committee.c: too many arguments to function