From: Hao Jia Date: Sat, 6 Aug 2022 12:05:10 +0000 (+0800) Subject: sched/psi: Remove redundant cgroup_psi() when !CONFIG_CGROUPS X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d7ae5818c3fa3007dee13f9d99832e7f26b8bc44;p=linux.git sched/psi: Remove redundant cgroup_psi() when !CONFIG_CGROUPS cgroup_psi() is only called under CONFIG_CGROUPS. We don't need cgroup_psi() when !CONFIG_CGROUPS, so we can remove it in this case. Signed-off-by: Hao Jia Reviewed-by: Ingo Molnar Acked-by: Johannes Weiner Signed-off-by: Tejun Heo --- diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index ed53bfe7c46c4..ac5d0515680ea 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h @@ -734,11 +734,6 @@ static inline struct cgroup *cgroup_parent(struct cgroup *cgrp) return NULL; } -static inline struct psi_group *cgroup_psi(struct cgroup *cgrp) -{ - return NULL; -} - static inline bool cgroup_psi_enabled(void) { return false;