[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211119083702.GM427717@gauss3.secunet.de>
Date: Fri, 19 Nov 2021 09:37:02 +0100
From: Steffen Klassert <steffen.klassert@...unet.com>
To: <cgel.zte@...il.com>
CC: Herbert Xu <herbert@...dor.apana.org.au>,
"David S . Miller" <davem@...emloft.net>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
"David Ahern" <dsahern@...nel.org>,
Jakub Kicinski <kuba@...nel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
luo penghao <luo.penghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH linux-next] ipv6/esp6: Remove structure variables and
alignment statements
On Thu, Nov 04, 2021 at 03:19:31AM +0000, cgel.zte@...il.com wrote:
> From: luo penghao <luo.penghao@....com.cn>
>
> The definition of this variable is just to find the length of the
> structure after aligning the structure. The PTR alignment function
> is to optimize the size of the structure. In fact, it doesn't seem
> to be of much use, because both members of the structure are of
> type u32.
> So I think that the definition of the variable and the
> corresponding alignment can be deleted, the value of extralen can
> be directly passed in the size of the structure.
>
> The clang_analyzer complains as follows:
>
> net/ipv6/esp6.c:117:27 warning:
>
> Value stored to 'extra' during its initialization is never read
>
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: luo penghao <luo.penghao@....com.cn>
Applied to ipsec-next, thanks!
Powered by blists - more mailing lists