Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3356745rwb; Mon, 5 Sep 2022 10:10:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR5c+BKsyxU1cXVCl48ofjSv16EvAojvkPSvXvzIpQbQAR3aqNFz2DkYqfIfZKC9attP8Gf+ X-Received: by 2002:a17:907:9816:b0:741:89cc:af19 with SMTP id ji22-20020a170907981600b0074189ccaf19mr26137854ejc.492.1662397847856; Mon, 05 Sep 2022 10:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662397847; cv=none; d=google.com; s=arc-20160816; b=hiHrlAAVXpCms2K8hwcRFV2GON0C7npH/zXQ8JBDD2e7xyqnZbH1WT/d8HHaFlVjyl x/Yoq9J/X49difSa7DvTQ5/qM5ho8uv76G8PGmIJlQb69zaqH+tn2Xb7sErVorOMebh8 Ix3cXSPePqzoY8D99nhLc6JNQbdSC3ym2IzoF+0XyJ+src00iGTGjA5NwmS6J1VW/8Mg nOcijkwfsiqXnXqIejy+DkbZXOAAtGErZ/W2/g37suc/scRvQjZ1lFhpy2j4nfCpc+Ba 4ioVNfInMo5MFL91QacHfmcEDpa5dtmxUvN9Fq0yc6NMptYrfdO7f5LD6iMRo3nD4Ufv 5JBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yM8u+cHN3wUIvlqKUHDwcJ2mNpXuajnzcZgsgkwy+mw=; b=pftdVPRN1gK3XYauZ0j8SH0UAOevdQPBnuzVLBKhg4KgtPUvChYOdd3daw2gJMv6Es yVy85904nirj/wk4Rx824I4O6Iame2lNVzsNks2CxYHAq+uz1NmT4ynIbt3IRgumyRlN VgIebxPXe4jUUqnlc5/7xyWHT71RiCYjR2AoNnXEch/aVtMx8IVfc6q3CBrR2Xm3mDRa QoIKVEXFx6LbqmmMQF6po1eQzciACcwN+PmXducnMcpEj1aJSNEYUXTrzLfg1c9vjlh/ 2IvZHb9dAkQgrzBckA6+a5/vTjCMinLsKIKHe0UdGa4zsO5WGEFBevGpALTAsDhKoLlP coRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du16-20020a17090772d000b0073dc32ccd9fsi8284541ejc.104.2022.09.05.10.09.32; Mon, 05 Sep 2022 10:10:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbiIEQ4m (ORCPT + 99 others); Mon, 5 Sep 2022 12:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbiIEQ4k (ORCPT ); Mon, 5 Sep 2022 12:56:40 -0400 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F08340BDF; Mon, 5 Sep 2022 09:56:39 -0700 (PDT) Received: by mail-wr1-f47.google.com with SMTP id bp20so11620341wrb.9; Mon, 05 Sep 2022 09:56:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=yM8u+cHN3wUIvlqKUHDwcJ2mNpXuajnzcZgsgkwy+mw=; b=VoQ64CsNXWlnE3rOqnxuaX93zjcO+UaC3l+HrJd2jI1t7NRi0wIgwybgTY3klQoG0B jh1tHKQewdvO69dSbCJczBCZb+ICTj7H/cvjIr3mO6nZHUlnChJ3mADsSvbIVDpkqoPb BzuSmsGoogtMYkMtNqmcCd+TlgQ4fSH9P6oxVTsCbKRofc9bOtKBYOfpojgu3EobXeik 3gvZ3gwNIda/s7FJATOcvwYeFToe8cef5GCPyyhqgp4BYzazVp0r8dPWhxLzHEEOQDxr MmrIX2HIBBZkzKqtHC5oH01UwyCZFqjVqzdbjyo6uQBT8+QMaXFKhUwXTu7a/i1pj82z Z9PA== X-Gm-Message-State: ACgBeo1mz5cW3xqaXGFkU9kY7ZrY85BO+IGdrINofoR0z9fthTnuwvka RJ8PTTg/P6CVyqreIrcDV+RpatCYzQ4= X-Received: by 2002:a5d:480c:0:b0:225:55d9:202a with SMTP id l12-20020a5d480c000000b0022555d9202amr24800527wrq.483.1662396998264; Mon, 05 Sep 2022 09:56:38 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id d14-20020a05600c34ce00b003a5f54e3bbbsm18086726wmq.38.2022.09.05.09.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 09:56:37 -0700 (PDT) Date: Mon, 5 Sep 2022 16:56:33 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: Zhou jie , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Dexuan Cui , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] hv/hv_kvp_daemon: remove unnecessary (void*) conversions Message-ID: <20220905165633.ciwh7toc3ynd3n5i@liuwe-devbox-debian-v2> References: <20220823034552.8596-1-zhoujie@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2022 at 05:14:55PM +0000, Michael Kelley (LINUX) wrote: > From: Zhou jie Sent: Monday, August 22, 2022 8:46 PM > > > > remove unnecessary void* type casting. > > > > Signed-off-by: Zhou jie > > --- > > tools/hv/hv_kvp_daemon.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c > > index 1e6fd6ca513b..445abb53bf0d 100644 > > --- a/tools/hv/hv_kvp_daemon.c > > +++ b/tools/hv/hv_kvp_daemon.c > > @@ -772,11 +772,11 @@ static int kvp_process_ip_address(void *addrp, > > const char *str; > > > > if (family == AF_INET) { > > - addr = (struct sockaddr_in *)addrp; > > + addr = addrp; > > str = inet_ntop(family, &addr->sin_addr, tmp, 50); > > addr_length = INET_ADDRSTRLEN; > > } else { > > - addr6 = (struct sockaddr_in6 *)addrp; > > + addr6 = addrp; > > str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); > > addr_length = INET6_ADDRSTRLEN; > > } > > -- > > 2.18.2 > > The patch subject prefix for changes to this module is usually "tools: hv:" > or "tools: hv: kvp:" and this patch should be consistent. Check the commit > log for tools/hv/hv_kvp_daemon.c for historical examples. > > Modulo this tweak, > > Reviewed-by: Michael Kelley I fixed the prefix and pushed this to hyperv-fixes. Thanks, Wei.