All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.13/lru 9/14] mm/vmscan.c:2911:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
@ 2021-06-29 11:53 kernel test robot
  2021-06-29 11:53 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
  0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2021-06-29 11:53 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]

CC: kbuild-all(a)lists.01.org
TO: steven(a)liquorix.net

tree:   https://github.com/zen-kernel/zen-kernel 5.13/lru
head:   6c0599d8df2c91043cffba0fbdd8c0fdc3297551
commit: 0c09e5f119fe208b6abf362197df921a81c18eea [9/14] mm: multigenerational lru: mm_struct list
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: sparc64-randconfig-c023-20210629 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> mm/vmscan.c:2911:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
   mm/vmscan.c:3067:15-21: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28756 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [zen:5.14/lru-v5 6/14] mm/vmscan.c:2946:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
@ 2021-10-25  7:16 kernel test robot
  2021-10-25  7:16 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
  0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2021-10-25  7:16 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

CC: kbuild-all(a)lists.01.org
TO: steven(a)liquorix.net

tree:   https://github.com/zen-kernel/zen-kernel 5.14/lru-v5
head:   99e7c83f97caf5a659eadcd6d547d68ae648ab0d
commit: 3cf93f784702b891e31203fdc7e8f0017f5f0e87 [6/14] mm: multigenerational lru: mm_struct list
:::::: branch date: 2 weeks ago
:::::: commit date: 5 weeks ago
config: i386-randconfig-c001-20211011 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> mm/vmscan.c:2946:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
   mm/vmscan.c:3080:15-21: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33424 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [zen:5.14/lru-v5 6/14] mm/vmscan.c:2946:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
@ 2021-10-11  6:09 kernel test robot
  2021-10-11  6:09 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
  0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2021-10-11  6:09 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

CC: kbuild-all(a)lists.01.org
TO: steven(a)liquorix.net

tree:   https://github.com/zen-kernel/zen-kernel 5.14/lru-v5
head:   99e7c83f97caf5a659eadcd6d547d68ae648ab0d
commit: 3cf93f784702b891e31203fdc7e8f0017f5f0e87 [6/14] mm: multigenerational lru: mm_struct list
:::::: branch date: 6 hours ago
:::::: commit date: 3 weeks ago
config: i386-randconfig-c001-20211011 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> mm/vmscan.c:2946:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
   mm/vmscan.c:3080:15-21: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33425 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings
@ 2021-09-07 20:34 Julia Lawall
  0 siblings, 0 replies; 8+ messages in thread
From: Julia Lawall @ 2021-09-07 20:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]

From: kernel test robot <lkp@intel.com>

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: 3b838ec127aa ("mm: multigenerational lru: mm_struct list")
CC: Yu Zhao <yuzhao@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---

tree:   https://github.com/zen-kernel/zen-kernel 5.14/lru-v3
head:   58423b0ba935bb76ff3f6754703e8fb8533ecae3
commit: 3b838ec127aaaa0b5121fbffb2eaee9f2d014a7e [9/18] mm: multigenerational lru: mm_struct list
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago

 vmscan.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2935,7 +2935,7 @@ struct lru_gen_mm_list {
 		int nr_workers;
 		/* stats for debugging */
 		unsigned long stats[NR_STAT_GENS][NR_MM_STATS];
-	} nodes[0];
+	} nodes[];
 };

 static struct lru_gen_mm_list *global_mm_list;
@@ -3091,7 +3091,7 @@ struct mm_walk_args {
 	int batch_size;
 	int nr_pages[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];
 	int mm_stats[NR_MM_STATS];
-	unsigned long bitmap[0];
+	unsigned long bitmap[];
 };

 static int size_of_mm_walk_args(void)

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [zen-kernel-zen-kernel:5.14/lru-v3 9/18] mm/vmscan.c:2938:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
@ 2021-09-07 18:10 kernel test robot
  2021-09-07 18:10 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
  0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2021-09-07 18:10 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1160 bytes --]

CC: kbuild-all(a)lists.01.org
TO: steven(a)liquorix.net

tree:   https://github.com/zen-kernel/zen-kernel 5.14/lru-v3
head:   58423b0ba935bb76ff3f6754703e8fb8533ecae3
commit: 3b838ec127aaaa0b5121fbffb2eaee9f2d014a7e [9/18] mm: multigenerational lru: mm_struct list
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago
config: i386-randconfig-c021-20210906 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> mm/vmscan.c:2938:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
   mm/vmscan.c:3094:15-21: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34621 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings
@ 2021-06-29 11:56 Julia Lawall
  0 siblings, 0 replies; 8+ messages in thread
From: Julia Lawall @ 2021-06-29 11:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]

From: kernel test robot <lkp@intel.com>

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: 0c09e5f119fe ("mm: multigenerational lru: mm_struct list")
CC: Yu Zhao <yuzhao@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---

tree:   https://github.com/zen-kernel/zen-kernel 5.13/lru
head:   6c0599d8df2c91043cffba0fbdd8c0fdc3297551
commit: 0c09e5f119fe208b6abf362197df921a81c18eea [9/14] mm: multigenerational lru: mm_struct list
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago

Please take the patch only if it's a positive warning. Thanks!

 vmscan.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2908,7 +2908,7 @@ struct lru_gen_mm_list {
 		int nr_workers;
 		/* stats for debugging */
 		unsigned long stats[NR_STAT_GENS][NR_MM_STATS];
-	} nodes[0];
+	} nodes[];
 };

 static struct lru_gen_mm_list *global_mm_list;
@@ -3064,7 +3064,7 @@ struct mm_walk_args {
 	int batch_size;
 	int nr_pages[MAX_NR_GENS][ANON_AND_FILE][MAX_NR_ZONES];
 	int mm_stats[NR_MM_STATS];
-	unsigned long bitmap[0];
+	unsigned long bitmap[];
 };

 static int size_of_mm_walk_args(void)

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [zen-kernel-zen-kernel:5.12/lru 10/16] mm/vmscan.c:4506:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
@ 2021-04-29  4:22 kernel test robot
  2021-04-29  4:22 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
  0 siblings, 1 reply; 8+ messages in thread
From: kernel test robot @ 2021-04-29  4:22 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

CC: kbuild-all(a)lists.01.org
TO: steven(a)liquorix.net

tree:   https://github.com/zen-kernel/zen-kernel 5.12/lru
head:   823fd97115db2e075c2c7d374e069665dd9aaa22
commit: 613e620606b76427f0a012b0b2bbcca8defbbf0a [10/16] mm: multigenerational lru: mm_struct list
:::::: branch date: 6 hours ago
:::::: commit date: 6 hours ago
config: sparc-randconfig-c004-20210428 (attached as .config)
compiler: sparc-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> mm/vmscan.c:4506:3-8: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31280 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-25  7:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-29 11:53 [zen-kernel-zen-kernel:5.13/lru 9/14] mm/vmscan.c:2911:3-8: 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-06-29 11:53 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-10-25  7:16 [zen:5.14/lru-v5 6/14] mm/vmscan.c:2946:3-8: 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-10-25  7:16 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
2021-10-11  6:09 [zen:5.14/lru-v5 6/14] mm/vmscan.c:2946:3-8: 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-10-11  6:09 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
2021-09-07 20:34 Julia Lawall
2021-09-07 18:10 [zen-kernel-zen-kernel:5.14/lru-v3 9/18] mm/vmscan.c:2938:3-8: 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-09-07 18:10 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot
2021-06-29 11:56 Julia Lawall
2021-04-29  4:22 [zen-kernel-zen-kernel:5.12/lru 10/16] mm/vmscan.c:4506:3-8: 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-04-29  4:22 ` [PATCH] mm: multigenerational lru: fix flexible_array.cocci warnings kernel test robot

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.