From patchwork Sat Dec 12 21:53:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KY Srinivasan X-Patchwork-Id: 7836361 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B87029F39B for ; Sat, 12 Dec 2015 20:20:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF3BF2038A for ; Sat, 12 Dec 2015 20:20:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07E522037E for ; Sat, 12 Dec 2015 20:20:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753132AbbLLUUT (ORCPT ); Sat, 12 Dec 2015 15:20:19 -0500 Received: from p3plsmtps2ded01.prod.phx3.secureserver.net ([208.109.80.58]:48884 "EHLO p3plsmtps2ded01.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752599AbbLLUUS (ORCPT ); Sat, 12 Dec 2015 15:20:18 -0500 Received: from linuxonhyperv.com ([72.167.245.219]) by : HOSTING RELAY : with SMTP id 7qePaSodLGozP7qePaCrxY; Sat, 12 Dec 2015 13:20:18 -0700 x-originating-ip: 72.167.245.219 Received: by linuxonhyperv.com (Postfix, from userid 507) id E62EB190209; Sat, 12 Dec 2015 13:53:46 -0800 (PST) From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, ohering@suse.com, jbottomley@parallels.com, hch@infradead.org, linux-scsi@vger.kernel.org, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, martin.petersen@oracle.com Cc: "K. Y. Srinivasan" Subject: [PATCH V2 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet Date: Sat, 12 Dec 2015 13:53:42 -0800 Message-Id: <1449957225-9276-1-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1449957191-9232-1-git-send-email-kys@microsoft.com> References: <1449957191-9232-1-git-send-email-kys@microsoft.com> X-CMAE-Envelope: MS4wfPMrlvdV/xBHHMMI2fFTiGBGt6faF1oyH5+RVmdFSpvAlG+xLD7yrmfJPvQlbjar2DsYP4YgZqdJXZ7kT5fz/Rtc9M9sNrOjf6qsumGT4th5Y/2y0SZj HNhjbw0dtgwkTzY7iR5+PCgKUvhfUxODZwtu4XlqnOGNX68RqnAlTjskdUEmDPKk2TtJaZuiwCy/i46H73SbMC0zx6iBNdBdkSQ8Mc62c8Sby+uZjKOdxntY EgR+SsSjSoN0gFSjHqQtT2t1RH4jevj8mYBjMi8y2IrNRP9HLoRk4sQ68X19yj9f7pH4bCUZ+exCm/CAgU1czP4e5PhwwRQHhj1U7U+EKK5t460W4Urxhu3X tQPn1mADDT+jvO33czZCvPS4t3d49GailELnpUYTetc0TtizPdUCAwe1O5RTL3BeQslDONdcEvfcfK7luJR8IHoZNZgf9s6hmbj4/s8Ytwr4/Yigdjp1q4qA 0YTJ2iJtTckRkUFQt+4rLjhJM0ZHtVrRItKzB4eeItLNQkJEFWWLd3TDYQmD0F4eedRBwtK2Y/N2cFeXsphy7QmO4V0ewMeYdFBTPg== Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Johannes Thumshirn Reviewed-by: Long Li Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index c41f674..00bb4bd 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -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];