summaryrefslogtreecommitdiff
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2023-06-22 21:51:14 +0300
committerTejun Heo <tj@kernel.org>2023-06-22 21:51:14 +0300
commit81621430c81bb7965c3d5807039bc2b5b3ec87ca (patch)
tree6f18f461c37509342d20cb37314a330f33aadb05 /kernel/cgroup
parente973dfe9299441ad263efedf094897fbb31e6a87 (diff)
downloadlinux-81621430c81bb7965c3d5807039bc2b5b3ec87ca.tar.xz
Revert "cgroup: Avoid -Wstringop-overflow warnings"
This reverts commit 36de5f303ca1bd6fce74815ef17ef3d8ff8737b5. 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>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/cgroup.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 1404e8e8abf7..065bebb4af9b 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -1198,9 +1198,6 @@ static struct css_set *find_css_set(struct css_set *old_cset,
unsigned long key;
int ssid;
- if (!CGROUP_HAS_SUBSYS_CONFIG)
- return NULL;
-
lockdep_assert_held(&cgroup_mutex);
/* First see if we already have a cgroup group that matches
@@ -6020,9 +6017,6 @@ int __init cgroup_init(void)
struct cgroup_subsys *ss;
int ssid;
- if (!CGROUP_HAS_SUBSYS_CONFIG)
- return -EINVAL;
-
BUILD_BUG_ON(CGROUP_SUBSYS_COUNT > 16);
BUG_ON(cgroup_init_cftypes(NULL, cgroup_base_files));
BUG_ON(cgroup_init_cftypes(NULL, cgroup_psi_files));