storvsc: Fix a bug in the layout of the hv_fc_wwn_packet
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 23 Dec 2015 21:15:48 +0000 (13:15 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Jan 2016 20:49:19 +0000 (15:49 -0500)
The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in
Linux match the Windows definition.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Long Li <longli@microsoft.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Alex Ng <alexng@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c

index c41f6748823a7658050fb369178f3cadb4778b89..00bb4bdffe852105ddd7fa0481fc257b427e3489 100644 (file)
@@ -92,9 +92,8 @@ enum vstor_packet_operation {
  */
 
 struct hv_fc_wwn_packet {
-       bool    primary_active;
-       u8      reserved1;
-       u8      reserved2;
+       u8      primary_active;
+       u8      reserved1[3];
        u8      primary_port_wwn[8];
        u8      primary_node_wwn[8];
        u8      secondary_port_wwn[8];