OSDN Git Service

cgroup: minor cleanup for cgroup_extra_stat_show()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 6 Jul 2023 09:42:42 +0000 (17:42 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 10 Jul 2023 20:23:41 +0000 (10:23 -1000)
commit1299eb2b0ad5812dd6e5ea5b631da61f9e791bb3
treef0d105c47f2f55426208534c64ad2c713791dcc1
parent2246ca53d7b3c286348c9c4cc4d2551972619cc2
cgroup: minor cleanup for cgroup_extra_stat_show()

Make it under CONFIG_CGROUP_SCHED to rid of __maybe_unused annotation.
And further fetch cgrp inside cgroup_extra_stat_show() directly to rid
of __maybe_unused annotation of cgrp. No functional change intended.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c