CC: [email protected] TO: "André Almeida" <[email protected]> CC: Steven Barrett <[email protected]> CC: Thomas Gleixner <[email protected]> CC: Ingo Molnar <[email protected]> CC: Peter Zijlstra <[email protected]> CC: Darren Hart <[email protected]> CC: [email protected]
From: kernel test robot <[email protected]> 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 <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: kernel test robot <[email protected]> --- 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 -- [email protected] To unsubscribe send an email to [email protected]
