[kbuild] [PATCH] futex2: fix flexible_array.cocci warnings
CC: kbuild-...@lists.01.org TO: ste...@liquorix.net From: kernel test robot 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 CC: André Almeida Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://github.com/zen-kernel/zen-kernel 5.14/futex2 head: fa99bbb4cf0a5c6ed18cf58ecca678e82e008cb9 commit: cc20b5f100d4f345e0b090a7a76daea256e6097d [1/8] futex2: Implement wait and wake functions :: branch date: 4 days ago :: commit date: 4 days 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
[kbuild] [PATCH] futex2: fix flexible_array.cocci warnings
CC: kbuild-...@lists.01.org TO: ste...@liquorix.net From: kernel test robot 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 Reported-by: kernel test robot Signed-off-by: kernel test robot --- 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
[kbuild] [PATCH] futex2: fix flexible_array.cocci warnings
CC: kbuild-...@lists.01.org In-Reply-To: <20210427231248.220501-2-andrealm...@collabora.com> References: <20210427231248.220501-2-andrealm...@collabora.com> TO: "André Almeida" From: kernel test robot 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 CC: André Almeida Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Andr-Almeida/Add-futex2-syscalls/20210428-071852 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git f4abe9967c6fdb511ee567e129a014b60945ab93 :: branch date: 10 hours ago :: commit date: 10 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 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
[kbuild] [PATCH] futex2: fix flexible_array.cocci warnings
CC: kbuild-...@lists.01.org TO: "André Almeida" CC: Steven Barrett CC: Thomas Gleixner CC: Ingo Molnar CC: Peter Zijlstra CC: Darren Hart CC: linux-ker...@vger.kernel.org From: kernel test robot 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 Reported-by: kernel test robot Signed-off-by: kernel test robot --- 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