public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Remove unnecessary linux/kvm.h include (v2)
@ 2008-01-30  4:50 Anthony Liguori
       [not found] ` <1201668605-2210-1-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2008-01-30  4:50 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Anthony Liguori, Avi Kivity

This removes an unnecessary include of linux/kvm.h which happens to silence
a warning introduced by my previous patch :-)  We have to move the ABI check
too until we've included libkvm.h.

Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c
index d798841..28df774 100644
--- a/libkvm/libkvm.c
+++ b/libkvm/libkvm.c
@@ -18,18 +18,6 @@
 #define __user /* temporary, until installed via make headers_install */
 #endif
 
-#if defined(__i386__) || defined(__x86_64__)
-#define CONFIG_X86
-#endif
-
-#include <linux/kvm.h>
-
-#define EXPECTED_KVM_API_VERSION 12
-
-#if EXPECTED_KVM_API_VERSION != KVM_API_VERSION
-#error libkvm: userspace and kernel version mismatch
-#endif
-
 #include <unistd.h>
 #include <fcntl.h>
 #include <stdio.h>
@@ -40,6 +28,12 @@
 #include <sys/ioctl.h>
 #include "libkvm.h"
 
+#define EXPECTED_KVM_API_VERSION 12
+
+#if EXPECTED_KVM_API_VERSION != KVM_API_VERSION
+#error libkvm: userspace and kernel version mismatch
+#endif
+
 #if defined(__x86_64__) || defined(__i386__)
 #include "kvm-x86.h"
 #endif

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-30 16:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30  4:50 [PATCH] Remove unnecessary linux/kvm.h include (v2) Anthony Liguori
     [not found] ` <1201668605-2210-1-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2008-01-30 14:50   ` Avi Kivity
     [not found]     ` <47A08EA1.5000403-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-30 16:27       ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox