[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201010103746.3c05e1f4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Sat, 10 Oct 2020 10:37:46 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Pujin Shi <shipujin.t@...il.com>
Cc: "David S . Miller" <davem@...emloft.net>,
Ursula Braun <ubraun@...ux.ibm.com>,
Karsten Graul <kgraul@...ux.ibm.com>,
linux-s390@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, hankinsea@...il.com
Subject: Re: [PATCH 1/2] net: smc: fix missing brace warning for old
compilers
On Thu, 8 Oct 2020 20:19:28 +0800 Pujin Shi wrote:
> For older versions of gcc, the array = {0}; will cause warnings:
>
> net/smc/smc_llc.c: In function 'smc_llc_send_link_delete_all':
> net/smc/smc_llc.c:1317:9: warning: missing braces around initializer [-Wmissing-braces]
> struct smc_llc_msg_del_link delllc = {0};
> ^
> net/smc/smc_llc.c:1317:9: warning: (near initialization for 'delllc.hd') [-Wmissing-braces]
>
> 1 warnings generated
>
> Fixes: f3811fd7bc97 ("net/smc: send DELETE_LINK, ALL message and wait for send to complete")
> Signed-off-by: Pujin Shi <shipujin.t@...il.com>
Applied both, thanks!
Powered by blists - more mailing lists