diff options
author | Tejun Heo <tj@kernel.org> | 2017-10-30 11:13:14 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-10-30 11:13:14 -0400 |
commit | c3ba13298709f46e72b22d087d0aa02bd012e4b0 (patch) | |
tree | eb05900d333ae784873aa9d3ac244971047ca012 | |
parent | 663d46736993ed4ab397f878d5cc93991e29bc59 (diff) |
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: "kbuild-all@01.org" <kbuild-all@01.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | kernel/cgroup/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index d9773e49a1b4..d6ed725f36d9 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c | |||
@@ -3357,7 +3357,7 @@ static int __maybe_unused cgroup_extra_stat_show(struct seq_file *seq, | |||
3357 | 3357 | ||
3358 | static int cpu_stat_show(struct seq_file *seq, void *v) | 3358 | static int cpu_stat_show(struct seq_file *seq, void *v) |
3359 | { | 3359 | { |
3360 | struct cgroup *cgrp = seq_css(seq)->cgroup; | 3360 | struct cgroup __maybe_unused *cgrp = seq_css(seq)->cgroup; |
3361 | int ret = 0; | 3361 | int ret = 0; |
3362 | 3362 | ||
3363 | cgroup_stat_show_cputime(seq); | 3363 | cgroup_stat_show_cputime(seq); |