CC: kbuild-...@lists.01.org
TO: "André Almeida" <andrealm...@collabora.com>
CC: Steven Barrett <ste...@liquorix.net>
CC: Thomas Gleixner <t...@linutronix.de>
CC: Ingo Molnar <mi...@redhat.com>
CC: Peter Zijlstra <pet...@infradead.org>
CC: Darren Hart <dvh...@infradead.org>
CC: linux-ker...@vger.kernel.org

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: 4f6d01d9753e ("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.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[];
 };
 
 /**
_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to