* [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
* Re: [PATCH] Remove unnecessary linux/kvm.h include (v2)
[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>
0 siblings, 1 reply; 3+ messages in thread
From: Avi Kivity @ 2008-01-30 14:50 UTC (permalink / raw)
To: Anthony Liguori; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Anthony Liguori wrote:
> 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.
>
>
Doesn't apply, please check.
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
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 [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove unnecessary linux/kvm.h include (v2)
[not found] ` <47A08EA1.5000403-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2008-01-30 16:27 ` Anthony Liguori
0 siblings, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2008-01-30 16:27 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Avi Kivity wrote:
> Anthony Liguori wrote:
>> 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.
>>
>>
>
> Doesn't apply, please check.
Did you apply "Remove -DCONFIG_X86 from qemu_cflags"? I probably should
have folded that patch too. Look for my next note "Remove -DCONFIG_X86
from qemu cflags (v2)". You can just apply that.
Sorry for all the confusion, it was a long day yesterday :-)
Regards,
Anthony Liguori
-------------------------------------------------------------------------
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 [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