Re: [External] [PATCH v2] memcontrol: use flexible-array member

From: Muchun Song
Date: Tue May 18 2021 - 22:46:43 EST


On Wed, May 19, 2021 at 4:09 AM wenhuizhang <wenhui@xxxxxxxxxxxxxx> wrote:
>
> Change depracated zero-length-and-one-element-arrays into flexible

s/depracated/deprecated/g

> array member.Zero-length and one-element arrays detected by Lukas's CodeChecker.
> Zero/one element arrays causes undefined behaviours if sizeof() used.

s/causes/cause/g

>
> Signed-off-by: wenhuizhang <wenhui@xxxxxxxxxxxxxx>

Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Thanks.