All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
	bpf@vger.kernel.org, kbuild-all@lists.01.org
Subject: [PATCH bpf-next] bpf: fix flexible_array.cocci warnings
Date: Tue, 25 Jan 2022 15:05:19 +0800	[thread overview]
Message-ID: <20220125070519.GA56817@inn2.lkp.intel.com> (raw)
In-Reply-To: <CAP01T76-KHKgqAippfyL0aa5Vc4dZGvH4VO+qKrQB-bBpp=YfA@mail.gmail.com>

From: kernel test robot <lkp@intel.com>

net/bpf/test_run.c:296:6-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)


 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: c1ff181ffabc ("selftests/bpf: Extend kfunc selftests")
CC: Kumar Kartikeya Dwivedi <memxor@gmail.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>

 test_run.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/bpf/test_run.c
+++ b/net/bpf/test_run.c
@@ -293,7 +293,7 @@ struct prog_test_fail2 {
 struct prog_test_fail3 {
 	int len;
 	char arr1[2];
-	char arr2[0];
+	char arr2[];
 };
 
 noinline void bpf_kfunc_call_test_pass_ctx(struct __sk_buff *skb)

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [PATCH bpf-next] bpf: fix flexible_array.cocci warnings
Date: Tue, 25 Jan 2022 15:05:19 +0800	[thread overview]
Message-ID: <20220125070519.GA56817@inn2.lkp.intel.com> (raw)
In-Reply-To: <CAP01T76-KHKgqAippfyL0aa5Vc4dZGvH4VO+qKrQB-bBpp=YfA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

From: kernel test robot <lkp@intel.com>

net/bpf/test_run.c:296:6-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)


 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: c1ff181ffabc ("selftests/bpf: Extend kfunc selftests")
CC: Kumar Kartikeya Dwivedi <memxor@gmail.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>

 test_run.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/bpf/test_run.c
+++ b/net/bpf/test_run.c
@@ -293,7 +293,7 @@ struct prog_test_fail2 {
 struct prog_test_fail3 {
 	int len;
 	char arr1[2];
-	char arr2[0];
+	char arr2[];
 };
 
 noinline void bpf_kfunc_call_test_pass_ctx(struct __sk_buff *skb)

  reply	other threads:[~2022-01-25  7:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-22  9:25 [PATCH] selftests/bpf: fix flexible_array.cocci warnings Julia Lawall
2022-01-22 10:49 ` Kumar Kartikeya Dwivedi
2022-01-25  7:05   ` kernel test robot [this message]
2022-01-25  7:05     ` [PATCH bpf-next] bpf: " kernel test robot
2022-01-25 13:45     ` Daniel Borkmann
2022-01-25 13:45       ` Daniel Borkmann
  -- strict thread matches above, loose matches on Subject: below --
2022-01-22 11:09 Julia Lawall
2022-01-22 11:09 ` Julia Lawall
2022-01-24 16:24 ` Daniel Borkmann
2022-01-24 16:24   ` Daniel Borkmann

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=20220125070519.GA56817@inn2.lkp.intel.com \
    --to=lkp@intel.com \
    --cc=bpf@vger.kernel.org \
    --cc=julia.lawall@lip6.fr \
    --cc=kbuild-all@lists.01.org \
    --cc=memxor@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.