All of
 help / color / mirror / Atom feed
* + memcontrol-use-flexible-array-member.patch added to -mm tree
@ 2021-05-18 20:51 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-05-18 20:51 UTC (permalink / raw)
  To: alexander.h.duyck, alexs, guro, hannes, mhocko, mm-commits,
	richard.weiyang, shakeelb, shy828301, songmuchun, wenhui

The patch titled
     Subject: memcontrol: use flexible-array member
has been added to the -mm tree.  Its filename is

This patch should soon appear at
and later at

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

From: wenhuizhang <>
Subject: memcontrol: use flexible-array member

Change depracated zero-length-and-one-element-arrays into flexible array
member.Zero-length and one-element arrays detected by Lukas's CodeChecker.
Zero/one element arrays causes undefined behaviours if sizeof() used.

Signed-off-by: wenhuizhang <>
Cc: Shakeel Butt <>
Cc: Johannes Weiner <>
Cc: Roman Gushchin <>
Cc: Michal Hocko <>
Cc: Muchun Song <>
Cc: Yang Shi <>
Cc: Alex Shi <>
Cc: Alexander Duyck <>
Cc: Wei Yang <>
Signed-off-by: Andrew Morton <>

 include/linux/memcontrol.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/include/linux/memcontrol.h~memcontrol-use-flexible-array-member
+++ a/include/linux/memcontrol.h
@@ -349,8 +349,7 @@ struct mem_cgroup {
 	struct deferred_split deferred_split_queue;
-	struct mem_cgroup_per_node *nodeinfo[0];
-	/* WARNING: nodeinfo must be the last member here */
+	struct mem_cgroup_per_node *nodeinfo[];

Patches currently in -mm which might be from are


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-18 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 20:51 + memcontrol-use-flexible-array-member.patch added to -mm tree akpm

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.