From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [PATCH] futex2: fix flexible_array.cocci warnings
Date: Fri, 19 Feb 2021 04:15:45 +0800 [thread overview]
Message-ID: <20210218201545.GA35133@18c425c5c86e> (raw)
In-Reply-To: <202102190437.rxqeIbPl-lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]
CC: kbuild-all(a)lists.01.org
TO: "André Almeida" <andrealmeid@collabora.com>
CC: Steven Barrett <steven@liquorix.net>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Ingo Molnar <mingo@redhat.com>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Darren Hart <dvhart@infradead.org>
CC: linux-kernel(a)vger.kernel.org
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
Fixes: 4f6d01d9753e ("futex2: Implement wait and wake functions")
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.10/futex2
head: 65d8ec592b14a8c75ce2a04bfef5a188cd279d00
commit: 4f6d01d9753e7ff0e6ca0ab6082f8b75256cdb57 [1/13] futex2: Implement wait and wake functions
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours 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 futexv_head {
struct task_struct *task;
bool hint;
- struct futex_waiter objects[0];
+ struct futex_waiter objects[];
};
/**
next prev parent reply other threads:[~2021-02-18 20:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
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-07-01 8:09 [zen-kernel-zen-kernel:5.12/futex2 1/18] 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-07-01 8:09 ` [PATCH] futex2: fix flexible_array.cocci warnings kernel test robot
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 ` [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=20210218201545.GA35133@18c425c5c86e \
--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.