OSDN Git Service

cgroup: put cgroup_tryget_css() inside CONFIG_CGROUP_SCHED
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 11 Jul 2023 02:38:20 +0000 (10:38 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 11 Jul 2023 21:46:00 +0000 (11:46 -1000)
commitd1d4ff5d11a5887a9c4cfc00294bc68ba03e7c16
tree270b865018cdb0d0afd0f1ae97a5d6b4cbdc7c5e
parent3ae0b773211ed0231e7ee3e8d28ec4ab9bc5134b
cgroup: put cgroup_tryget_css() inside CONFIG_CGROUP_SCHED

Put cgroup_tryget_css() inside CONFIG_CGROUP_SCHED to fix the warning
of 'cgroup_tryget_css' defined but not used [-Wunused-function] when
CONFIG_CGROUP_SCHED is disabled.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c