lkml.org 
[lkml]   [2018]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 44/45] C++: Can't declare unsized-array in struct cgroup
From
Date
struct cgroup can't be defined with an unsized array in it (ancestors_ids)
as the struct is embedded in another struct. Fix it to have a 0 in there.

Signed-off-by: David Howells <dhowells@redhat.com>
---

include/linux/cgroup-defs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h
index 9f242b876fde..86fe9c6c6466 100644
--- a/include/linux/cgroup-defs.h
+++ b/include/linux/cgroup-defs.h
@@ -428,7 +428,7 @@ struct cgroup {
struct cgroup_bpf bpf;

/* ids of the ancestors at each level including self */
- int ancestor_ids[];
+ int ancestor_ids[0];
};

/*
\
 
 \ /
  Last update: 2018-04-01 22:45    [W:0.148 / U:6.780 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site