Skip to content

Commit 8162143

Browse files
committed
Revert "cgroup: Avoid -Wstringop-overflow warnings"
This reverts commit 36de5f3. The commit caused boot failures on some configurations due to cgroup hierarchies not being created at all. Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent e973dfe commit 8162143

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

kernel/cgroup/cgroup.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,9 +1198,6 @@ static struct css_set *find_css_set(struct css_set *old_cset,
11981198
unsigned long key;
11991199
int ssid;
12001200

1201-
if (!CGROUP_HAS_SUBSYS_CONFIG)
1202-
return NULL;
1203-
12041201
lockdep_assert_held(&cgroup_mutex);
12051202

12061203
/* First see if we already have a cgroup group that matches
@@ -6020,9 +6017,6 @@ int __init cgroup_init(void)
60206017
struct cgroup_subsys *ss;
60216018
int ssid;
60226019

6023-
if (!CGROUP_HAS_SUBSYS_CONFIG)
6024-
return -EINVAL;
6025-
60266020
BUILD_BUG_ON(CGROUP_SUBSYS_COUNT > 16);
60276021
BUG_ON(cgroup_init_cftypes(NULL, cgroup_base_files));
60286022
BUG_ON(cgroup_init_cftypes(NULL, cgroup_psi_files));

0 commit comments

Comments
 (0)