[PATCH] kvm: external module: support building against Windriver 2.0 (kernel 2.6.21)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is needed to compile kvm in a Windriver 2.0 distribution
(kernel 2.6.21). This kernel has an include file marker.h, but
trace_mark is not defined there. So the compat code in
kernel/include-compat/linux/marker.h is not included.

Signed-off-by: Bernhard Kohl <bernhard.kohl@xxxxxxx>
---
 kernel/external-module-compat-comm.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kernel/external-module-compat-comm.h
b/kernel/external-module-compat-comm.h
index a14cea2..e40501e 100644
--- a/kernel/external-module-compat-comm.h
+++ b/kernel/external-module-compat-comm.h
@@ -25,6 +25,10 @@
 #  undef CONFIG_KVM_TRACE
 #endif
 
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,21)
+#define trace_mark(args...) ((void)0)
+#endif
+
 /*
  * 2.6.16 does not have GFP_NOWAIT
  */
-- 
1.6.0.6


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux