aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2012-08-16 11:23:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 16:54:16 -0400
commit1508d8111f0e965ebe06c32dc4d176750eb53c3a (patch)
treec6ab90d157faf7f89346c053e4305d29e1a19103 /include/linux/hyperv.h
parentb47a81dcc5a806efb6d970608299129771588289 (diff)
Drivers: hv: Explicitly size elements of protocol structures
Use explicitly sized types in data structures defining the host/guest protocol. Reported-by: Juan Sanchez-Agrelo <jagrelo@cisco.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r--include/linux/hyperv.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index b587c448e8ab..7585d5533e43 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -487,7 +487,7 @@ struct vmtransfer_page_range {
487struct vmtransfer_page_packet_header { 487struct vmtransfer_page_packet_header {
488 struct vmpacket_descriptor d; 488 struct vmpacket_descriptor d;
489 u16 xfer_pageset_id; 489 u16 xfer_pageset_id;
490 bool sender_owns_set; 490 u8 sender_owns_set;
491 u8 reserved; 491 u8 reserved;
492 u32 range_cnt; 492 u32 range_cnt;
493 struct vmtransfer_page_range ranges[1]; 493 struct vmtransfer_page_range ranges[1];
@@ -641,7 +641,7 @@ struct vmbus_channel_query_vmbus_version {
641/* VMBus Version Supported parameters */ 641/* VMBus Version Supported parameters */
642struct vmbus_channel_version_supported { 642struct vmbus_channel_version_supported {
643 struct vmbus_channel_message_header header; 643 struct vmbus_channel_message_header header;
644 bool version_supported; 644 u8 version_supported;
645} __packed; 645} __packed;
646 646
647/* Offer Channel parameters */ 647/* Offer Channel parameters */
@@ -650,7 +650,7 @@ struct vmbus_channel_offer_channel {
650 struct vmbus_channel_offer offer; 650 struct vmbus_channel_offer offer;
651 u32 child_relid; 651 u32 child_relid;
652 u8 monitorid; 652 u8 monitorid;
653 bool monitor_allocated; 653 u8 monitor_allocated;
654} __packed; 654} __packed;
655 655
656/* Rescind Offer parameters */ 656/* Rescind Offer parameters */
@@ -786,7 +786,7 @@ struct vmbus_channel_initiate_contact {
786 786
787struct vmbus_channel_version_response { 787struct vmbus_channel_version_response {
788 struct vmbus_channel_message_header header; 788 struct vmbus_channel_message_header header;
789 bool version_supported; 789 u8 version_supported;
790} __packed; 790} __packed;
791 791
792enum vmbus_channel_state { 792enum vmbus_channel_state {