Re: [PATCH] cgroup: put cgroup_tryget_css() inside CONFIG_CGROUP_SCHED

From: Tejun Heo
Date: Tue Jul 11 2023 - 17:46:36 EST


On Tue, Jul 11, 2023 at 10:38:20AM +0800, Miaohe Lin wrote:
> 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@xxxxxxxxxx>

Applied to cgroup/for-6.6.

Thanks.

--
tejun