lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220209143613.forbf5chbexnfad5@liuwe-devbox-debian-v2>
Date:   Wed, 9 Feb 2022 14:36:13 +0000
From:   Wei Liu <wei.liu@...nel.org>
To:     Cai Huoqing <cai.huoqing@...ux.dev>
Cc:     "K. Y. Srinivasan" <kys@...rosoft.com>,
        Haiyang Zhang <haiyangz@...rosoft.com>,
        Stephen Hemminger <sthemmin@...rosoft.com>,
        Wei Liu <wei.liu@...nel.org>, Dexuan Cui <decui@...rosoft.com>,
        linux-hyperv@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Drivers: hv: utils: Make use of the helper macro
 LIST_HEAD()

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@...ux.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
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ