CC: kbuild-...@lists.01.org TO: ste...@liquorix.net From: kernel test robot <l...@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 <andrealm...@collabora.com> Reported-by: kernel test robot <l...@intel.com> Signed-off-by: kernel test robot <l...@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[]; }; /** _______________________________________________ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org