public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, Eduardo Habkost <ehabkost@redhat.com>
Subject: [maint/2.6.29 PATCH] kvm-userspace: include <asm/svm.h> on external-module-compat.h
Date: Fri, 23 Jan 2009 18:59:43 -0200	[thread overview]
Message-ID: <1232744383-998-1-git-send-email-ehabkost@redhat.com> (raw)

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 <ehabkost@redhat.com>
---
 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 <asm/msr.h>
 
+/* for the MSR_VM_* constants that were moved to svm.h */
+#include <asm/svm.h>
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
 
 #ifndef _EFER_SCE
-- 
1.6.1


             reply	other threads:[~2009-01-23 21:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-23 20:59 Eduardo Habkost [this message]
2009-02-04 14:27 ` [maint/2.6.29 PATCH] kvm-userspace: include <asm/svm.h> on external-module-compat.h Avi Kivity
2009-02-04 22:39   ` Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1232744383-998-1-git-send-email-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox