Linux-HyperV List
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu@kernel.org>
To: Cai Huoqing <cai.huoqing@linux.dev>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>,
	Haiyang Zhang <haiyangz@microsoft.com>,
	Stephen Hemminger <sthemmin@microsoft.com>,
	Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
	linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Drivers: hv: utils: Make use of the helper macro LIST_HEAD()
Date: Wed, 9 Feb 2022 14:36:13 +0000	[thread overview]
Message-ID: <20220209143613.forbf5chbexnfad5@liuwe-devbox-debian-v2> (raw)
In-Reply-To: <20220209032251.37362-1-cai.huoqing@linux.dev>

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 <cai.huoqing@linux.dev>

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
> 

      reply	other threads:[~2022-02-09 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-09  3:22 [PATCH] Drivers: hv: utils: Make use of the helper macro LIST_HEAD() Cai Huoqing
2022-02-09 14:36 ` Wei Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220209143613.forbf5chbexnfad5@liuwe-devbox-debian-v2 \
    --to=wei.liu@kernel.org \
    --cc=cai.huoqing@linux.dev \
    --cc=decui@microsoft.com \
    --cc=haiyangz@microsoft.com \
    --cc=kys@microsoft.com \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sthemmin@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox