Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4690940imm; Mon, 14 May 2018 11:15:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpoEHtU3Rt+vVndFmcUx1rxDzoNCZQwESmhJDimOcEkFbZonABnk8K6gg57fe8Vw6UwiB0g X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr11011473plc.248.1526321710289; Mon, 14 May 2018 11:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526321710; cv=none; d=google.com; s=arc-20160816; b=dLO7Q7+nAcosnlOFGkmx9DLxo050kKIgBcLHvSlFiwcgoOhanYVLl2g2oXWAK+ERRd YAM0p0lYhpZzNcLGS6inM2AFCGsUQdaY9ZaCxaGBd0V/RTid96gqVX4yUQyd4ux5MFfj 14Qlts1SRb4tpCYGEVlxWrwoQYwI4dsYiF3pdlCnnb6uEjD5PN16fxMvFkSb9V9EIa7Z BDJVAML0man0a8m/VNrdcdiOutJaUertfu0T02q462Lj4HgSK4/tye6mNHPNQo33XPUX 18CAh+FRkq7M9sHv17cCz+r35OcroFG7d7X3Ngp4+cgdrjEymBuapfpDGISJF+TssLiu QZRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=LThfQz0kgyPDSmneMnVkFc+/bpb+xkKKpnNnitGaCrY=; b=pQH4RhXBuV236RjdlP30yF9AXA1hZf/984EHoIojEF4vOGWrcbrHwVgFPBi43M7Mab C7E2Ic+pcdXHDwPFzbi36TFlO0bNKGWjIKPQEqGl3BTjlhLwJPuen8hFb6AXT3jGTu31 8B8eay1ujX4DbKlWzYLvJHWhm9NbXpwX9NFohUlesWhW+Fgf+0/pmeDwf6aFQVDymQ06 zIUc1OTFL50FOuZ5hXiRY13/5Dz3T/uEolg20szIj63dyJj5gJsSOVbswW6BAHqM0ZjR roTCviRLpGZsrTY3Ro09ylnIiRfQXu3F0LH40Obz+ElEHhhsChNSdfgF/BABudcaxGeH ld/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=R7vB81vN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r12-v6si9863426plo.442.2018.05.14.11.14.55; Mon, 14 May 2018 11:15:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=R7vB81vN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752017AbeENSOb (ORCPT + 99 others); Mon, 14 May 2018 14:14:31 -0400 Received: from mail-sg2apc01on0094.outbound.protection.outlook.com ([104.47.125.94]:45336 "EHLO APC01-SG2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751626AbeENSO3 (ORCPT ); Mon, 14 May 2018 14:14:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LThfQz0kgyPDSmneMnVkFc+/bpb+xkKKpnNnitGaCrY=; b=R7vB81vN+XktH5hQr3Kx4NLrYislsnQAOq93Gek8taoGb4UuBa0erQAZeAD/pB5d6kPEIDopVNGDGDzh4pK2m79URNZI8xzjb0vz5Bk8S6lG3hmAklQmFIerHkfKprbFqWA4CdoWK7KCwJ+ZryCLxcTLxTnb34kN881SJz8kgL0= Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM (10.170.167.17) by KL1P15301MB0053.APCP153.PROD.OUTLOOK.COM (10.170.168.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.797.2; Mon, 14 May 2018 18:14:15 +0000 Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) by KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) with mapi id 15.20.0797.002; Mon, 14 May 2018 18:14:15 +0000 From: Dexuan Cui To: Stephen Hemminger , "kys@linuxonhyperv.com" CC: "olaf@aepfle.de" , Stephen Hemminger , "gregkh@linuxfoundation.org" , "jasowang@redhat.com" , "linux-kernel@vger.kernel.org" , "Michael Kelley (EOSG)" , "apw@canonical.com" , "devel@linuxdriverproject.org" , "vkuznets@redhat.com" Subject: RE: [PATCH 1/1] Drivers: hv: vmbus: enable VMBus protocol version 5.0 Thread-Topic: [PATCH 1/1] Drivers: hv: vmbus: enable VMBus protocol version 5.0 Thread-Index: AQHT6dQOF2Jt1OtZ802pCkKtamiImKQt6r+AgAGeN0A= Date: Mon, 14 May 2018 18:14:15 +0000 Message-ID: References: <20180512093033.12325-1-kys@linuxonhyperv.com> <20180513102409.4adc5200@xeon-e3> In-Reply-To: <20180513102409.4adc5200@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=decui@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-05-14T18:14:12.8851748Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-originating-ip: [2001:4898:80e8:c::70b] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KL1P15301MB0053;7:SW/zeP9UdqhT29Y2m/VEzWvLzzsAXI4+BrnnJfzS2qvdfmPY4DKrA2c/IQeYRmknUiAHbIeCnq3rHrF14PQtTOWj6EXnp0VmDDWj7ZK0k1rCf288D2BJgLjZC9Y9TP2BmMy0CXo4uSbvivUE8pHBai5enjmqVcG9yQMnEzqRKYXsr093xYTU0XHC38+lHXjDI88rYhw3I6GIUCOR+Go8t7B5Np5W0NA5hR4pB0J7y2ms50CIFt274e4ofuxdoH7v;20:bQunO1Hq1wdhXqDmwZNfoxxjz5o90AC++l5txh+uz0EW3C3JoomqO12BI7wNleqBQj8R22xw9UcMJWL46wUN6/vtlidM15HxFMzgbQXxsh1AVDUzQvE6BYcX/nK2Oq/0uI7yV0TEHS7mngzcYsXL3GtkUsy5Whl8SDRl8LTmwFo= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7193020);SRVR:KL1P15301MB0053; x-ms-traffictypediagnostic: KL1P15301MB0053: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:KL1P15301MB0053;BCL:0;PCL:0;RULEID:;SRVR:KL1P15301MB0053; x-forefront-prvs: 067270ECAF x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(396003)(366004)(39380400002)(39860400002)(199004)(189003)(24433001)(74316002)(97736004)(77096007)(186003)(4326008)(68736007)(6246003)(7736002)(102836004)(6506007)(76176011)(14454004)(86362001)(7696005)(22452003)(10290500003)(478600001)(9686003)(8990500004)(86612001)(2900100001)(305945005)(10090500001)(99286004)(25786009)(54906003)(110136005)(316002)(53936002)(3280700002)(476003)(486006)(8676002)(3660700001)(55016002)(229853002)(8936002)(81156014)(11346002)(446003)(6116002)(81166006)(46003)(5660300001)(33656002)(2906002)(2501003)(105586002)(106356001)(6436002);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1P15301MB0053;H:KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 9tbOhMFZd5b0vfTpClLyqyoObZCisXrLOdWK4f5ohnLE1YGdxgmLi+XWn/I3wqyNqF4pPGs0JPIl27SBHyMSII4neZJXQZCWg9jZFT3uzTSSsJthRmyug47yc7gEq9sk/Xxeq4VZfWTBWSmM7Tnt32M/wpxCOsjLaeg18bW4fp/kr0sT6aBr9byOHtJFzDLoDy99Mc+epOZNN7gXccYgZw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0280e6c7-c938-4b8d-6fe0-08d5b9c680c0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0280e6c7-c938-4b8d-6fe0-08d5b9c680c0 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2018 18:14:15.2006 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1P15301MB0053 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: devel On Behalf Of > Stephen Hemminger > Sent: Sunday, May 13, 2018 10:24 > > ... > > @@ -372,6 +400,18 @@ int vmbus_post_msg(void *buffer, size_t buflen, > bool can_sleep) > > ... > > + hdr =3D (struct vmbus_channel_message_header *)buffer; >=20 > Hate to pick o the details, but buffer is void * so cast is not necessary= here. Yes, it's unnecessary in C, though it's necessary in C++. I found the patch went into char-misc 4 hours ago, so it looks we may as well leave it as is. IMHO an explicit cast is not a bad thing. :-) Thanks, -- Dexuan