linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cgroup: remove unused variable
@ 2008-10-27 23:03 Luck, Tony
  2008-10-27 23:08 ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Luck, Tony @ 2008-10-27 23:03 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: LKML

From: Stephen Rothwell <sfr@canb.auug.org.au>

/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".

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Henrik Austad <henrik@austad.us>
Signed-off-by: Tony Luck <tony.luck@intel.com>

---

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(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 046c160..35eebd5 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -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) {
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] cgroup: remove unused variable
  2008-10-27 23:03 [PATCH] cgroup: remove unused variable Luck, Tony
@ 2008-10-27 23:08 ` Linus Torvalds
  2008-10-28  6:42   ` Henrik Austad
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Torvalds @ 2008-10-27 23:08 UTC (permalink / raw)
  To: Luck, Tony; +Cc: LKML



On Mon, 27 Oct 2008, Luck, Tony wrote:
> 
> 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 :-)

Hmm.. Committed on Sunday. Should hav been in -rc2 already, no?

		Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cgroup: remove unused variable
  2008-10-27 23:08 ` Linus Torvalds
@ 2008-10-28  6:42   ` Henrik Austad
  0 siblings, 0 replies; 4+ messages in thread
From: Henrik Austad @ 2008-10-28  6:42 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Luck, Tony, LKML

On Tuesday 28 October 2008 00:08:24 Linus Torvalds wrote:
> 
> On Mon, 27 Oct 2008, Luck, Tony wrote:
> > 
> > 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 :-)
> 
> Hmm.. Committed on Sunday. Should hav been in -rc2 already, no?

yes, commit 207777664

-- 
henrik

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] cgroup: remove unused variable
@ 2008-10-21  5:11 Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2008-10-21  5:11 UTC (permalink / raw)
  To: Linus; +Cc: Andrew Morton, LKML, Paul Menage

/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".

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 kernel/cgroup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 046c160..35eebd5 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -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) {
-- 
1.5.6.5

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-28  6:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27 23:03 [PATCH] cgroup: remove unused variable Luck, Tony
2008-10-27 23:08 ` Linus Torvalds
2008-10-28  6:42   ` Henrik Austad
  -- strict thread matches above, loose matches on Subject: below --
2008-10-21  5:11 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).