From mboxrd@z Thu Jan 1 00:00:00 1970 From: mtosatti@redhat.com Subject: [patch 1/4] kvm-kmod: nr_cpu_ids compat Date: Thu, 07 May 2009 17:55:10 -0300 Message-ID: <20090507205536.645873463@amt.cnet> References: <20090507205509.522421993@amt.cnet> Cc: avi@redhat.com, Marcelo Tosatti To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:45201 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752791AbZEGVJ5 (ORCPT ); Thu, 7 May 2009 17:09:57 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n47L9vPM016560 for ; Thu, 7 May 2009 17:09:57 -0400 Content-Disposition: inline; filename=kvm-kmod-compat-nr_cpu_ids Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Marcelo Tosatti Index: kvm-kmod/external-module-compat-comm.h =================================================================== --- kvm-kmod.orig/external-module-compat-comm.h +++ kvm-kmod/external-module-compat-comm.h @@ -116,6 +116,10 @@ int kvm_smp_call_function_single(int cpu #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) +#define nr_cpu_ids NR_CPUS +#endif + #include #ifndef KVM_MINOR #define KVM_MINOR 232