Commit c1f26493 authored by Hubert Jasudowicz's avatar Hubert Jasudowicz Committed by Linus Torvalds

groups: use flexible-array member in struct group_info

Replace zero-size array with flexible array member, as recommended by
the docs.

Link: https://lkml.kernel.org/r/155995eed35c3c1bdcc56e69d8997c8e4c46740a.1611620846.git.hubert.jasudowicz@gmail.comSigned-off-by: default avatarHubert Jasudowicz <hubert.jasudowicz@gmail.com>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Micah Morton <mortonm@chromium.org>
Cc: Gao Xiang <xiang@kernel.org>
Cc: Michael Kelley <mikelley@microsoft.com>
Cc: Thomas Cedeno <thomascedeno@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c131bd0b
...@@ -25,7 +25,7 @@ struct inode; ...@@ -25,7 +25,7 @@ struct inode;
struct group_info { struct group_info {
atomic_t usage; atomic_t usage;
int ngroups; int ngroups;
kgid_t gid[0]; kgid_t gid[];
} __randomize_layout; } __randomize_layout;
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment