From: Eduardo Habkost Subject: [maint/2.6.29 PATCH] kvm-userspace: include on external-module-compat.h Date: Fri, 23 Jan 2009 18:59:43 -0200 Message-ID: <1232744383-998-1-git-send-email-ehabkost@redhat.com> Cc: kvm@vger.kernel.org, Eduardo Habkost To: Avi Kivity Return-path: Received: from mx2.redhat.com ([66.187.237.31]:35006 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755179AbZAWVAF (ORCPT ); Fri, 23 Jan 2009 16:00:05 -0500 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 n0NL04hs006369 for ; Fri, 23 Jan 2009 16:00:04 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Make sure we get the MSR_* defines from asm/svm.h before checking if they are defined. This fixes the following warning: In file included from /home/ehabkost/code/kvm/kvm-userspace/kernel/x86/kvm_svm.h:10, from /home/ehabkost/code/kvm/kvm-userspace/kernel/x86/svm.c:58: /home/ehabkost/code/kvm/kvm-userspace/kernel/include/asm/svm.h:219:1: warning: "MSR_VM_HSAVE_PA" redefined This fix applies only to the maint/2.6.29 branch, as on the master branch the MSR_* defines went to a different header file. Signed-off-by: Eduardo Habkost --- kernel/x86/external-module-compat.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kernel/x86/external-module-compat.h b/kernel/x86/external-module-compat.h index 04352bc..9ba1cc8 100644 --- a/kernel/x86/external-module-compat.h +++ b/kernel/x86/external-module-compat.h @@ -10,6 +10,9 @@ #include +/* for the MSR_VM_* constants that were moved to svm.h */ +#include + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) #ifndef _EFER_SCE -- 1.6.1