cgroup: remove unused variable
PATCH 1/1 cgroup: remove unused variable
From: Stephen Rothwell <[email protected]>
/scratch/sfr/next/kernel/cgroup.c: In function 'cgroup_tasks_start':
/scratch/sfr/next/kernel/cgroup.c:2107: warning: unused variable 'i'
Introduced in commit cc31edceee04a7b87f2be48f9489ebb72d264844 "cgroups:
convert tasks file to use a seq_file with shared pid array".
---
Linus, I guess you don't build with CONFIG_CGROUPS=y or you'd have fixed this, or taken one of the patches that fix it. I'm tired of seeing the warning in my build log :-)
kernel/cgroup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/cgroup.c +1 -1
@@ -2104,7 +2104,7 @@ static void *cgroup_tasks_start(struct seq_file *s, loff_t *pos)down_read (&cgrp->pids_mutex);if (pid) {int end = cgrp->pids_length; -int i; +while (index < end) {int mid = (index + end) /2 ;if (cgrp->tasks_pids[mid] == pid) {
Signature · 1 line
1.5.6.5
Quoted 4 lines · Tony
Linus, I guess you don't build with
CONFIG_CGROUPS=yor you'd have fixed this, or taken one of the patches that fix it. I'm tired of seeing the warning in my build log :-)
Hmm.. Committed on Sunday. Should hav been in -rc2 already, no?
Linus
Quoted 8 lines · On Tuesday 28 October 2008 00:08:24 Linus Torvalds wrote:
Quoted 4 lines · Tony
Linus, I guess you don't build with
CONFIG_CGROUPS=yor you'd have fixed this, or taken one of the patches that fix it. I'm tired of seeing the warning in my build log :-)Hmm.. Committed on Sunday. Should hav been in -rc2 already, no?
yes, commit 207777664
Signature · 1 line
henrik