Skip to content

Commit 1bf2f1d

Browse files
committed
Revert "cgroup: Avoid -Wstringop-overflow warnings"
JIRA: https://issues.redhat.com/browse/RHEL-80382 commit 8162143 Author: Tejun Heo <tj@kernel.org> Date: Thu Jun 22 08:51:14 2023 -1000 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> Signed-off-by: Radostin Stoyanov <rstoyano@redhat.com>
1 parent 6c552bf commit 1bf2f1d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

kernel/cgroup/cgroup.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,9 +1178,6 @@ static struct css_set *find_css_set(struct css_set *old_cset,
11781178
unsigned long key;
11791179
int ssid;
11801180

1181-
if (!CGROUP_HAS_SUBSYS_CONFIG)
1182-
return NULL;
1183-
11841181
lockdep_assert_held(&cgroup_mutex);
11851182

11861183
/* First see if we already have a cgroup group that matches
@@ -6161,9 +6158,6 @@ int __init cgroup_init(void)
61616158
struct cgroup_subsys *ss;
61626159
int ssid;
61636160

6164-
if (!CGROUP_HAS_SUBSYS_CONFIG)
6165-
return -EINVAL;
6166-
61676161
BUILD_BUG_ON(CGROUP_SUBSYS_COUNT > 16);
61686162
BUG_ON(cgroup_init_cftypes(NULL, cgroup_base_files));
61696163
BUG_ON(cgroup_init_cftypes(NULL, cgroup_psi_files));

0 commit comments

Comments
 (0)