public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: Make kvm header compile under g++.
@ 2009-03-28  4:53 nathan binkert
  2009-04-06 18:57 ` nathan binkert
  0 siblings, 1 reply; 7+ messages in thread
From: nathan binkert @ 2009-03-28  4:53 UTC (permalink / raw)
  To: kvm

Two things needed fixing: 1) g++ does not allow a named structure type
within an anonymous union and 2) Avoid name clash between two padding
fields within the same struct by giving them different names as is
done elsewhere in the header.


Signed-off-by: Nathan Binkert <nate@binkert.org>
---
 include/linux/kvm.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index ee755e2..2e3a734 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -119,7 +119,7 @@ struct kvm_run {
 			__u32 error_code;
 		} ex;
 		/* KVM_EXIT_IO */
-		struct kvm_io {
+		struct {
 #define KVM_EXIT_IO_IN  0
 #define KVM_EXIT_IO_OUT 1
 			__u8 direction;
@@ -224,10 +224,10 @@ struct kvm_interrupt {
 /* for KVM_GET_DIRTY_LOG */
 struct kvm_dirty_log {
 	__u32 slot;
-	__u32 padding;
+	__u32 padding1;
 	union {
 		void __user *dirty_bitmap; /* one bit per page */
-		__u64 padding;
+		__u64 padding2;
 	};
 };

-- 
1.6.1.2

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

end of thread, other threads:[~2009-04-09 16:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28  4:53 [PATCH] KVM: Make kvm header compile under g++ nathan binkert
2009-04-06 18:57 ` nathan binkert
2009-04-07 10:16   ` Avi Kivity
2009-04-07 16:44     ` nathan binkert
2009-04-07 17:11       ` Avi Kivity
2009-04-07 17:25         ` nathan binkert
2009-04-09 16:10           ` Avi Kivity

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