Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4991450imm; Mon, 14 May 2018 17:26:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrQKhyKnKPttHuXcxMhrDXBFiKhr8KSiQbZzW6P2kVEqltdMgzGpyFfZ31tINuw7ynSyfxv X-Received: by 2002:a17:902:4081:: with SMTP id c1-v6mr11921804pld.60.1526344002487; Mon, 14 May 2018 17:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526344002; cv=none; d=google.com; s=arc-20160816; b=Nbzi+WWx+W618jRnov7RAYFGO5erF/JRcIbGFoUXclCq80Y7vpsvjzIkZIMDQD7TyJ OZp6S3F3crid4nkFijnyd2zAlv+CbUnYArTQNwiSPp7qFmG3rtKzLi1BrzOymTdF7KZs onesmahH7vY3Knn+OG53vc9mVFgCG5vawR3lb+Uho+BDkHSHk9CDU3qzbKn4uZQP84bw 0SH8Ve7wWSXQKbulIwVP2aKylnC8GlWbQSJTnSCSMIGfdkVphWexcjR+VGshMYuxXUYo 9ewgyZGxR7Nz0qyCMrHna7Ai76rbNYfovJbohhXL+o2tjlYoole2MnZYbPA7A1Kia0mT 5pjQ== 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:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=QGEK4mAGXfFAZG3dZawkjklc5Z4zSPJLUndxyWBvvIo=; b=cN62EwvaD41GszKzBRPqP83BwF7kg304Zad+nqNqEjHxDEGjURiOm+EuwVDB87VxGV XWdeasvj5eRX5tED0UNMHRFmAxxmE7om6AUMqsUNfPC2RSRIJBseBcKfiUtTMNv685V1 caadqBCXPat1tObYW+Tth2UaJ6gUlh5PxiluWcgh4TIhiyoFh9ffnPprepWhJeFaC+pJ a/VZNOf20sDhbI2RDU61jxQHx+F0b720WoNT+0sBqHI/XeGheFQD26DzVDhMVwa41KIZ cLhlq9bcvs4ZmzWH48YBG/fZZ14cEzE7gA3qKRM54HXbMtrcO9hX5FTikCtUl9WrgGAJ 5tdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=KGmQShKy; 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 s88-v6si10723436pfe.290.2018.05.14.17.26.28; Mon, 14 May 2018 17:26:42 -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=KGmQShKy; 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 S1752498AbeEOAZM (ORCPT + 99 others); Mon, 14 May 2018 20:25:12 -0400 Received: from mail-sg2apc01on0106.outbound.protection.outlook.com ([104.47.125.106]:33219 "EHLO APC01-SG2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752333AbeEOAZL (ORCPT ); Mon, 14 May 2018 20:25:11 -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=QGEK4mAGXfFAZG3dZawkjklc5Z4zSPJLUndxyWBvvIo=; b=KGmQShKySfp3HriageciU/oL+Ly4I1Ceg86D8Zgm+0LAgTJLQSpdlrOuP9Jh2S5YyuLi3JadHPuOxgolvrlq1BmzVrhl7Z0vWqjr5pa1I5npVD1VZXwrCqgqPdOmhs/Oa4aKv1tmKQ0V/X7i+yXqDjWv5vwjw4MeY5CuyY5QCVw= Received: from SG2P15301MB0015.APCP153.PROD.OUTLOOK.COM (10.170.135.148) by SG2P15301MB0015.APCP153.PROD.OUTLOOK.COM (10.170.135.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.797.3; Tue, 15 May 2018 00:25:03 +0000 Received: from SG2P15301MB0015.APCP153.PROD.OUTLOOK.COM ([fe80::3087:1be9:e6eb:a015]) by SG2P15301MB0015.APCP153.PROD.OUTLOOK.COM ([fe80::3087:1be9:e6eb:a015%6]) with mapi id 15.20.0797.003; Tue, 15 May 2018 00:25:02 +0000 From: Dexuan Cui To: "'gregkh@linuxfoundation.org'" , "'driverdev-devel@linuxdriverproject.org'" , KY Srinivasan , Stephen Hemminger CC: "'linux-kernel@vger.kernel.org'" Subject: [PATCH] Drivers: hv: vmbus: Removed an unnecessary cast from void * Thread-Topic: [PATCH] Drivers: hv: vmbus: Removed an unnecessary cast from void * Thread-Index: AdPr4pAN7o7LkGFsSAGAZTut+Dz8ug== Date: Tue, 15 May 2018 00:25:01 +0000 Message-ID: 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-15T00:24:50.7199404Z; 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:1::7a8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SG2P15301MB0015;7:P9/wMaOPSpmjzN4Pwpzhjko8/Sw/+2w8EWyIzerjlO5IncrXiKltjl5eJrx7nyEZGyN2w++i1BCA3PGttWkBT8jFJ9M+ZeoN3Yd7egVq0WwHVdcmMWgk4B6dvZJSA6B8ZSXffo/kN4gluOEE9c7SRmTW/aGkAnZCzJ4ubNn4K6SbkN9NzU+tQCy+14L5S2frHuQdHClBAqB3C/3QpNPZpZXQimLh932xnVvo6TGDfmlw2D3SSn9MpFZ194nAiFd1;20:LJWw0ItMFCLGSvjMy4AcobcrSjiuW/iWVhnzlHWoUr3Q1deWaKbIzpa6RSj+GdJKBmyWVF01e0iDWmVvMY8BQ41W/q5pQ/jO+qHCsDZEorNfcJmMiRQIFZmFCnOD/PB22NpIt90DEopIlCq593GbYuYzbIlJge1aUY5H1OprWLo= 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)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:SG2P15301MB0015; x-ms-traffictypediagnostic: SG2P15301MB0015: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:SG2P15301MB0015;BCL:0;PCL:0;RULEID:;SRVR:SG2P15301MB0015; x-forefront-prvs: 0673F5BE31 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(376002)(346002)(39380400002)(39860400002)(396003)(366004)(189003)(199004)(8990500004)(6436002)(305945005)(8936002)(46003)(6116002)(7696005)(10090500001)(25786009)(14454004)(6636002)(74316002)(6506007)(86362001)(86612001)(5250100002)(99286004)(53936002)(186003)(1857600001)(316002)(22452003)(68736007)(10290500003)(81166006)(81156014)(3660700001)(478600001)(476003)(102836004)(3280700002)(2900100001)(110136005)(1511001)(486006)(55016002)(33656002)(7736002)(8676002)(9686003)(4326008)(2906002)(59450400001)(97736004)(5660300001)(105586002)(106356001)(491001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2P15301MB0015;H:SG2P15301MB0015.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: h2lrcDTO68WSdXm1dxh4+8gl5mBulB+LPq6RKUD07Fws0UnhUzcNQjWoMjGTjCdE69UIydKclEE80QGeu3QXHFYUF8pWUIz25tG6vwgQ8Z9NiTRiETjnlEWcSOQxsEVT4ScFD+bzgtxci+r7BgDbc3Iz05dr4J9xR+5M6T3d4daoOE/mioUNKTNO3fy6+T0c 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: dde64171-5960-4bba-b221-08d5b9fa4c97 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: dde64171-5960-4bba-b221-08d5b9fa4c97 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2018 00:25:01.6191 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2P15301MB0015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In C, we don't need such a cast. Fixes: ae20b254306a ("Drivers: hv: vmbus: enable VMBus protocol version 5.0= ") Signed-off-by: Dexuan Cui Cc: Stephen Hemminger Cc: K. Y. Srinivasan --- Thanks Stephen Hemminger for pointing this out! So far, ae20b254306a ("Drivers: hv: vmbus: enable VMBus protocol version 5.= 0") only appears in the char-misc tree's char-misc-testing and char-misc-next branch= es. If=20 possible, please merge both patches into one. drivers/hv/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 19e0468..ced0418 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c @@ -409,7 +409,7 @@ int vmbus_post_msg(void *buffer, size_t buflen, bool ca= n_sleep) * HV_STATUS_INVALID_CONNECTION_ID and we should * return an error immediately without retrying. */ - hdr =3D (struct vmbus_channel_message_header *)buffer; + hdr =3D buffer; if (hdr->msgtype =3D=3D CHANNELMSG_INITIATE_CONTACT) return -EINVAL; /* --=20 2.7.4