diff options
author | Andrey Smetanin <asmetanin@virtuozzo.com> | 2015-11-30 11:22:13 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-12-16 12:49:39 -0500 |
commit | 7797dcf63f11b6e1d34822daf2317223d0f4ad46 (patch) | |
tree | 01cffdc9a2bb29def5a06e2f195033dbebae21c7 | |
parent | da3f7ca3e85642627a8db37ba337eb5f424339f1 (diff) |
drivers/hv: replace enum hv_message_type by u32
enum hv_message_type inside struct hv_message, hv_post_message
is not size portable. Replace enum by u32.
Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: "K. Y. Srinivasan" <kys@microsoft.com>
CC: Haiyang Zhang <haiyangz@microsoft.com>
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: qemu-devel@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | drivers/hv/hyperv_vmbus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 3782636562a1..ab3be44e5ec8 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h | |||
@@ -174,7 +174,7 @@ union hv_message_flags { | |||
174 | 174 | ||
175 | /* Define synthetic interrupt controller message header. */ | 175 | /* Define synthetic interrupt controller message header. */ |
176 | struct hv_message_header { | 176 | struct hv_message_header { |
177 | enum hv_message_type message_type; | 177 | u32 message_type; |
178 | u8 payload_size; | 178 | u8 payload_size; |
179 | union hv_message_flags message_flags; | 179 | union hv_message_flags message_flags; |
180 | u8 reserved[2]; | 180 | u8 reserved[2]; |
@@ -347,7 +347,7 @@ enum hv_call_code { | |||
347 | struct hv_input_post_message { | 347 | struct hv_input_post_message { |
348 | union hv_connection_id connectionid; | 348 | union hv_connection_id connectionid; |
349 | u32 reserved; | 349 | u32 reserved; |
350 | enum hv_message_type message_type; | 350 | u32 message_type; |
351 | u32 payload_size; | 351 | u32 payload_size; |
352 | u64 payload[HV_MESSAGE_PAYLOAD_QWORD_COUNT]; | 352 | u64 payload[HV_MESSAGE_PAYLOAD_QWORD_COUNT]; |
353 | }; | 353 | }; |