From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [PATCH] futex2: fix flexible_array.cocci warnings
Date: Thu, 01 Jul 2021 16:09:56 +0800 [thread overview]
Message-ID: <20210701080956.GA8492@120e8b89e3bb> (raw)
In-Reply-To: <202107011636.824hTX5p-lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1361 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
Fixes: 64cdae0a6364 ("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.12/futex2
head: f8ef78621cdaa4c962fd2a44deedeff3cc6067a0
commit: 64cdae0a6364c651f13a9ba90f6a8fadd7e1b9f7 [1/18] futex2: Implement wait and wake functions
:::::: branch date: 9 hours ago
:::::: commit date: 8 weeks 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[];
};
/**
next prev parent reply other threads:[~2021-07-01 8:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-09-07 16:05 [zen-kernel-zen-kernel:5.14/futex2 1/8] " kernel test robot
2021-09-07 16:05 ` [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=20210701080956.GA8492@120e8b89e3bb \
--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.