[prev in list] [next in list] [prev in thread] [next in thread]
List: kvm-ppc
Subject: [PATCH] kvm: fix kvm_para.h header dependency
From: ehrhardt () linux ! vnet ! ibm ! com
Date: 2008-07-29 14:23:29
Message-ID: 1217341409-755-1-git-send-email-ehrhardt () linux ! vnet ! ibm ! com
[Download RAW message or body]
From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
I currently work on paravirtual extensions for powerpc and found that the
current header dependencies create a classic "chicken or egg problem" leading
to the point that you can't use definitions out of kvm_host.h in kvm_para.h
I found it because I wanted to use kvm_vcpu, after looking around I found
that neither kvm_host.h nor any file including it today needs anything from
kvm_para.h.
C Files needing definitions of kvm_para.h should include it diretly anyway
instead of kvm_host.h and hoping for nice follow up includes in the header.
Compilation of the patch tested for x86, powerpc and s390 (thanks to Christian
Borntraeger).
Easy solution to allow e.g. kvm_vcpu in kvm_para.h, but I might overlook
something, comments welcome.
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---
[diffstat]
kvm_host.h | 1 -
1 file changed, 1 deletion(-)
[diff]
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index a18aaad..af29039 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -19,7 +19,6 @@
#include <asm/signal.h>
#include <linux/kvm.h>
-#include <linux/kvm_para.h>
#include <linux/kvm_types.h>
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic