Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1992859pxb; Wed, 9 Feb 2022 08:42:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd2RdK/0w6tR/ivbhKf13j4DJClKbQLA5tf9i9lVkCFsr5DUbMkTUU8Bz4tMF+NhqX2AA/ X-Received: by 2002:a05:6a00:1950:: with SMTP id s16mr3236088pfk.39.1644424936536; Wed, 09 Feb 2022 08:42:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644424936; cv=none; d=google.com; s=arc-20160816; b=PTmH1FfN8VqPt9gtxj9vM706HWi+UBJEXZ4mm5vflndRb8e1r+ofomXgAtN6a/FLN3 LlbPfcmNCEY/+OrAU5Zq+zvSaZbCajdFo9Xny6tvMgPGgyqutCnMOiEv61TmH5tEMpI7 wbfxq7gd5qW9mLMPbLUvpbZT6iKNne+/dqsqMrxB0MJFNv/NkkKhk1DFkY+YBjBN1VZs 2ZXPkbpeKzPGT9ZxahJoMJJy+xb/RDBZ87TcgNwzz8oSqFJRavO/oGOWxM1Yj0rDQ9Af R2w76nzBJYHti5Y+Zk/Gbsxjt9qp75bRR1fgauvywqOiHqwPcLQLafccfvzFpd+g0MWK wzVg== 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=sDy4Lk2MySKM/19GlYVgEh5OHE3c2OCP46qjCmjP6RM=; b=P3xXxaLrepfqoQp70mt9i36y3x/ieUxijyxiYc9FCtOa7ikx0Tg/G/xzxM9cQMef9l V01UvA1w+ExtH5+0ZiByiJJvLVqDHBY/e5tnlLtHHM9DaY9ajFyG7cJsFKepYlPphlKj Cf5vgwDnRxh+qAOMeX0DiUfJhPtZGJ3z4wAg0XHr0f0VuSwhZaQi8eG2mVkZctYLHnrg rFbPbd/6W6l+bEJNHc9BDf3NORmihg47kdTWVSofBWVPs4PNnJjRoGzbBH/rrz1FK2p6 eCPEtvbz+HPMA/Fwcr18CV2LBirBJj2lJlUQS9ZKp37prHCTiIuea3gdXegjpjG4pewN 6p0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay2si552620pjb.180.2022.02.09.08.42.02; Wed, 09 Feb 2022 08:42:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235059AbiBIOgR (ORCPT + 99 others); Wed, 9 Feb 2022 09:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231747AbiBIOgP (ORCPT ); Wed, 9 Feb 2022 09:36:15 -0500 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD20FC06157B; Wed, 9 Feb 2022 06:36:17 -0800 (PST) Received: by mail-wr1-f50.google.com with SMTP id h6so4382849wrb.9; Wed, 09 Feb 2022 06:36:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sDy4Lk2MySKM/19GlYVgEh5OHE3c2OCP46qjCmjP6RM=; b=S2iqiM+kvuLs365jLzt3ttOYo2IbRoE7q1ooEm9Ysik8WfCJZ222utkTJpk0B6155X gQZkweH2m7YAmn4+rV/gyEEjGkCS7/yg8CO3XSlnf3RvF61QP1o/rqlcJIkEha0Nblg2 SxQL7NwJIVLbnF+0ROXqw5a1jGxBXM8Fm78/PSOdrJMesPWHbhHMkCv7ClCvMxNKds2u 0siMrKF3tuWKr1wm8UsbYNLdVYaVIhixFu/2UC55zLmjLd34zLnyBEuru1cRqPDM7R+p Vb/61V5RygaodUa0GzFHNMIbGNgBD8s4XD2hcH8Wt4ZJYCC2KDl08kyOeHVvc9r9Onby Z+SQ== X-Gm-Message-State: AOAM531WQEEM55+OeXyHlCio/yq4Lm5S5vLS2y3CZJnZvR01rBFzTsCG VsrbLL4bnMgfZ/M/YWaryiM= X-Received: by 2002:a5d:47a1:: with SMTP id 1mr2329619wrb.87.1644417376099; Wed, 09 Feb 2022 06:36:16 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id o16sm3610042wmc.25.2022.02.09.06.36.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 06:36:15 -0800 (PST) Date: Wed, 9 Feb 2022 14:36:13 +0000 From: Wei Liu To: Cai Huoqing Cc: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Drivers: hv: utils: Make use of the helper macro LIST_HEAD() Message-ID: <20220209143613.forbf5chbexnfad5@liuwe-devbox-debian-v2> References: <20220209032251.37362-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209032251.37362-1-cai.huoqing@linux.dev> 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 Wed, Feb 09, 2022 at 11:22:51AM +0800, Cai Huoqing wrote: > Replace "struct list_head head = LIST_HEAD_INIT(head)" with > "LIST_HEAD(head)" to simplify the code. > > Signed-off-by: Cai Huoqing Applied to hyperv-fixes. Thanks. > --- > drivers/hv/hv_utils_transport.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hv/hv_utils_transport.c b/drivers/hv/hv_utils_transport.c > index eb2833d2b5d0..832885198643 100644 > --- a/drivers/hv/hv_utils_transport.c > +++ b/drivers/hv/hv_utils_transport.c > @@ -13,7 +13,7 @@ > #include "hv_utils_transport.h" > > static DEFINE_SPINLOCK(hvt_list_lock); > -static struct list_head hvt_list = LIST_HEAD_INIT(hvt_list); > +static LIST_HEAD(hvt_list); > > static void hvt_reset(struct hvutil_transport *hvt) > { > -- > 2.25.1 >