From patchwork Fri Dec 11 00:14:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KY Srinivasan X-Patchwork-Id: 7822781 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 C9DAB9FC46 for ; Thu, 10 Dec 2015 22:52:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0C54203AD for ; Thu, 10 Dec 2015 22:52:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E297B20592 for ; Thu, 10 Dec 2015 22:52:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753028AbbLJWwT (ORCPT ); Thu, 10 Dec 2015 17:52:19 -0500 Received: from p3plsmtps2ded02.prod.phx3.secureserver.net ([208.109.80.59]:52551 "EHLO p3plsmtps2ded02.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbbLJWwS (ORCPT ); Thu, 10 Dec 2015 17:52:18 -0500 X-Greylist: delayed 678 seconds by postgrey-1.27 at vger.kernel.org; Thu, 10 Dec 2015 17:52:18 EST Received: from linuxonhyperv.com ([72.167.245.219]) by : HOSTING RELAY : with SMTP id 79tTaVtuDoEGE79tTa1GWQ; Thu, 10 Dec 2015 15:41:00 -0700 x-originating-ip: 72.167.245.219 Received: by linuxonhyperv.com (Postfix, from userid 507) id DA5CA1904D0; Thu, 10 Dec 2015 16:14:21 -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 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet Date: Thu, 10 Dec 2015 16:14:17 -0800 Message-Id: <1449792860-15447-1-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1449792829-15406-1-git-send-email-kys@microsoft.com> References: <1449792829-15406-1-git-send-email-kys@microsoft.com> X-CMAE-Envelope: MS4wfJXOE+uo1zVbV2dcCnEVEcagjt2+4LMP5IzrZyp6xsn6CyVJ1NBAlSmwWLiZgY8TPQ5K5RZXBxsvZimGp+HRL+3K8dLaQyaB1QPIaSXkGA10R586J3mQ KcT2ld955sXvkEMqjiUjIIccNFtFRhHJ+/g8Sv8bgBCdH/0+sIjpNcHcywkbM8cwfihHSqylkbukJBVp912OQimZpLYCrHlZTz0SHQBNrGF74fnfEn+zLsOW 4JXFx7ojVJ+6jdpmu2ZL9E4Cg7xLC4Fxq0px1zAAmHxsHiEhs1MtHeiCh4XCz1S/+xa4hx49sOsWf0HY0e/YYOd5E5CvAsqH4TCFCOXVZmGTj/fSFC0Tua+0 NnUCEEQG6riAZuGMEEno13Y9jC+SMnuxQWDGB2GQ9Rl1k6hTvsHX2eSMhka4pMhlC5PMyzJg/ofqMbT3mvvaE7HxwMRJ0JVvVVDgUcjk485cW8A31tByvYD8 C2qr3MChD0A6noaVIhNxo29jH5L7vY7ltSALbbz7ZHL7jN3JVZdKXS9w5gMW+GJ57xLmE87UZ3DcEA+OGjcFxctOCbaP1P9RPY6LLg== 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: Long Li Tested-by: Alex Ng Reviewed-by: Johannes Thumshirn --- 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];