All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [PATCH] futex2: fix flexible_array.cocci warnings
Date: Wed, 08 Sep 2021 00:05:42 +0800	[thread overview]
Message-ID: <20210907160542.GA65898@c8279f3c6314> (raw)
In-Reply-To: <202109080031.id7YM5PR-lkp@intel.com>

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

CC: kbuild-all(a)lists.01.org
TO: steven(a)liquorix.net

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

kernel/futex2.c:65:21-28: 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

CC: André Almeida <andrealmeid@collabora.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://github.com/zen-kernel/zen-kernel 5.14/futex2
head:   fa99bbb4cf0a5c6ed18cf58ecca678e82e008cb9
commit: cc20b5f100d4f345e0b090a7a76daea256e6097d [1/8] futex2: Implement wait and wake functions
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago

Please take the patch only if it's a positive warning. Thanks!

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

--- a/kernel/futex2.c
+++ b/kernel/futex2.c
@@ -62,7 +62,7 @@ struct futex_waiter {
 struct futex_waiter_head {
 	struct task_struct *task;
 	bool hint;
-	struct futex_waiter objects[0];
+	struct futex_waiter objects[];
 };
 
 /**

  reply	other threads:[~2021-09-07 16:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 16:05 [zen-kernel-zen-kernel:5.14/futex2 1/8] kernel/futex2.c:65:21-28: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) kernel test robot
2021-09-07 16:05 ` kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-01  8:09 [zen-kernel-zen-kernel:5.12/futex2 1/18] " kernel test robot
2021-07-01  8:09 ` [PATCH] futex2: fix flexible_array.cocci warnings kernel test robot
2021-04-28  8:56 [PATCH v3 01/13] futex2: Implement wait and wake functions kernel test robot
2021-04-28  8:56 ` [PATCH] futex2: fix flexible_array.cocci warnings kernel test robot
2021-02-18 20:15 [zen-kernel-zen-kernel:5.10/futex2 1/13] kernel/futex2.c:65:21-28: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) kernel test robot
2021-02-18 20:15 ` [PATCH] futex2: fix flexible_array.cocci warnings kernel test robot

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=20210907160542.GA65898@c8279f3c6314 \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /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.