Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4694138imm; Mon, 14 May 2018 11:18:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZphrXqhP4EuWECuEI7tXq4tmnL4RXYtcMMlHbGHWR8OZfBugqXrwN9ycDpPk627DL+XQFAL X-Received: by 2002:a17:902:848e:: with SMTP id c14-v6mr10960530plo.129.1526321921385; Mon, 14 May 2018 11:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526321921; cv=none; d=google.com; s=arc-20160816; b=fKZ9KisNzuJ0rm+MWBuZDph9lxS5tLVCYiiUyzVeO0y7+S5/7+BqAbgr2haQ/l4+5c AxyQ2N2FmYLMfXk2uhKIoiRiavqyF31ajZN3p8PwsCSiFBx1dwXbgsNB99MOL2pI+P0d IPbGOyT9ncD+hdN0bH6Xd+cAl7t2sIdq1kryu6gX+o/mW79KgexUQKeO+h0XoIZDgyss ko1XYA4W/LfGLcq0g1G5YJxsYFDdmmTz8U/HV70xIezAcOldwWdwjk9j4tgfgFXha5v7 j3S2ysi4Hs5cQTi4+DtunmJuaTEKur6t3aCi1Ox/emxtFu310x1kHP1w76JeizX8RdYy DNdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=GHCujqi5TJZv93Ocjyt5AAiz/fZymwX8lnq9z9gzg7k=; b=v38b1ie97Fc/w12Gd0EagdqN75zVCfUMFwCyKbyFIxvjwO4yDxcw5MgzS2jYiVqMMb RdTp2dh+WudZN5ZjvweFP6TUSdzurM1SLcNF2NBxhWP4bEdkL+ZgcYJPN1aAQRphkNxg x+FrbHt4XjwjbQjK4gOtHqKuvaceAjM5MeNEKoVZMoK21NxAXNfHg2YOQlpUmJPRkUtw tQg6Nk1Ca/rbx6esOtWrMVI7i4GAav6Kq0MiOmD2C/PMIrHbCRBK40CzP1l/ghglsNEm mZxDRsEoK/QV7hdMQXT57gZi5hiO540/Ja0YAE4FRK6OcJHJzjFUIwirBy8hvBirYQCv tiPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=0UFSxJhB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w64-v6si10246051pfw.201.2018.05.14.11.18.26; Mon, 14 May 2018 11:18:41 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=0UFSxJhB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbeENSSA (ORCPT + 99 others); Mon, 14 May 2018 14:18:00 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37311 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752041AbeENSR6 (ORCPT ); Mon, 14 May 2018 14:17:58 -0400 Received: by mail-pg0-f65.google.com with SMTP id a13-v6so5827654pgu.4 for ; Mon, 14 May 2018 11:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GHCujqi5TJZv93Ocjyt5AAiz/fZymwX8lnq9z9gzg7k=; b=0UFSxJhBXo54nHLJLMFNAKZDUPMO28po+gXlGfAUI1IOsSFjUcrsYAMHwM4gnS2Rv/ mkv0U1ae5dhm6VlQa5aGGaWeZ9v8usHS2d+o6FoXZDPHfejsJOXmEt0lPmSLLxphtHob pARptnmq8YY5oLW3QDvyDkkwAuQx7CQKvcCCkPGXbVGmJFLgmGV67/Eo8bVoc5+ww29p pBHboOTpdYMoVUmQqYHo1HSZE6pdRMsTl9Wv6YECdl/Dtilj2YkSm/vEokDmXb3KJR9R JUVpRAgHXZMZNWU3XxGcS7uNUyjEH4+tO1Z8GbDtNrZR+fZ6wDuEh3HDzIoWCMih3eeI IBRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GHCujqi5TJZv93Ocjyt5AAiz/fZymwX8lnq9z9gzg7k=; b=f83QT7MvJM8OanZGJAlvEH2jkC1OaLEfJsw/BTfDLTnyQ2c0pc622KmVkdpCoZXY4S pTSQiQM4v5Re6lCkijXiYUV1srlJDT6Np1hNE3GiTO0rqx91IjBtceizpd4qi7qgJ+gC j1siEvlCJmpG24JtNlwYdoE8fFhpHQYlUDdg8yGGeVqs+O6vIpDU6ystNW6Aqk3v7AIc ra6xJCgL0roKWvIrdvNYiM7ctcWJFNkot5SBQw9VCbVS+4GRd0GTGhYWKqmYZu1/fKLb 9XEUDgdkMRLg0+TtXER7tm5bl5BX5CX811KePRBSArIHfgjixVqU5RV6gR1ecxMvGYJM 2ciA== X-Gm-Message-State: ALKqPwe3Y+FV38jnAXwgywl9YJ3HK0ga2Q8ACh9qACIbAykMS5W1f9ey 7KJ2pMljWRIzGrqBnjfXYgimaQ== X-Received: by 2002:a65:6182:: with SMTP id c2-v6mr9600576pgv.219.1526321878217; Mon, 14 May 2018 11:17:58 -0700 (PDT) Received: from xeon-e3 (204-195-35-107.wavecable.com. [204.195.35.107]) by smtp.gmail.com with ESMTPSA id n10-v6sm23631081pfk.145.2018.05.14.11.17.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 11:17:57 -0700 (PDT) Date: Mon, 14 May 2018 11:17:55 -0700 From: Stephen Hemminger To: Dexuan Cui Cc: "kys@linuxonhyperv.com" , "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 Message-ID: <20180514111755.371d1d46@xeon-e3> In-Reply-To: References: <20180512093033.12325-1-kys@linuxonhyperv.com> <20180513102409.4adc5200@xeon-e3> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 May 2018 18:14:15 +0000 Dexuan Cui wrote: > > 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 = (struct vmbus_channel_message_header *)buffer; > > > > 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 Kernel developers like to be concise. In fact there is a smatch script that perodically gets run and more cleanup patches get sent.