Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3ba1329 authored by Tejun Heo's avatar Tejun Heo
Browse files

cgroup: mark @cgrp __maybe_unused in cpu_stat_show()



The local variable @cgrp isn't used if !CONFIG_CGROUP_SCHED.  Mark the
variable with __maybe_unused to avoid a compile warning.

Reported-by: default avatar"kbuild-all@01.org" <kbuild-all@01.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 663d4673
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3357,7 +3357,7 @@ static int __maybe_unused cgroup_extra_stat_show(struct seq_file *seq,

static int cpu_stat_show(struct seq_file *seq, void *v)
{
	struct cgroup *cgrp = seq_css(seq)->cgroup;
	struct cgroup __maybe_unused *cgrp = seq_css(seq)->cgroup;
	int ret = 0;

	cgroup_stat_show_cputime(seq);