linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Volodymyr Mytnyk <volodymyr.mytnyk@plvision.eu>
To: "Julia Lawall" <julia.lawall@inria.fr>,
	"Volodymyr Mytnyk" <vmytnyk@marvell.com>,
	"José Expósito" <jose.exposito89@gmail.com>
Cc: "kbuild-all@lists.01.org" <kbuild-all@lists.01.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Serhiy Boiko <serhiy.boiko@marvell.com>,
	Taras Chornyi <tchornyi@marvell.com>,
	Jakub Kicinski <kuba@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] net: prestera: fix flexible_array.cocci warnings
Date: Sat, 4 Dec 2021 17:45:48 +0000	[thread overview]
Message-ID: <VI1P190MB07349BB76E8DE98B61D63A7B8F6B9@VI1P190MB0734.EURP190.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2112031043180.5247@hadrien>

> Subject: [PATCH] net: prestera: fix flexible_array.cocci warnings 
>  
> From: kernel test robot <lkp@intel.com>
> 
> Zero-length and one-element arrays are deprecated, see
> Documentation/process/deprecated.rst
> Flexible-array members should be used instead.
> 
> Generated by: scripts/coccinelle/misc/flexible_array.cocci
> 
> Fixes: 6e36c7bcb461 ("net: prestera: add counter HW API")
> CC: Volodymyr Mytnyk <vmytnyk@marvell.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
> ---
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   9606f9efb1cec7f8f5912326f182fbfbcad34382
> commit: 6e36c7bcb4611414b339173cdc33fdcb55c08f9e [4129/4921] net: prestera: add counter HW API
> :::::: branch date: 19 hours ago
> :::::: commit date: 3 days ago
> 
> Please take the patch only if it's a positive warning. Thanks!
> 
>  prestera_hw.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/drivers/net/ethernet/marvell/prestera/prestera_hw.c
> +++ b/drivers/net/ethernet/marvell/prestera/prestera_hw.c
> @@ -443,7 +443,7 @@ struct prestera_msg_counter_resp {
>          __le32 offset;
>          __le32 num_counters;
>          __le32 done;
> -       struct prestera_msg_counter_stats stats[0];
> +       struct prestera_msg_counter_stats stats[];
>  };
> 
>  struct prestera_msg_span_req {

Hi Julia,

Fixed in https://www.spinics.net/lists/kernel/msg4167402.html

Thanks and Regards,
Volodymyr

      reply	other threads:[~2021-12-04 17:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03  9:44 Julia Lawall
2021-12-04 17:45 ` Volodymyr Mytnyk [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=VI1P190MB07349BB76E8DE98B61D63A7B8F6B9@VI1P190MB0734.EURP190.PROD.OUTLOOK.COM \
    --to=volodymyr.mytnyk@plvision.eu \
    --cc=jose.exposito89@gmail.com \
    --cc=julia.lawall@inria.fr \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=netdev@vger.kernel.org \
    --cc=serhiy.boiko@marvell.com \
    --cc=tchornyi@marvell.com \
    --cc=vmytnyk@marvell.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