提交 4fe91d51 编写于 作者: P Paul Jackson 提交者: Linus Torvalds

cgroup: fix sparse warning of shadow symbol in cgroup.c

Fix a code warning: symbol 'p' shadows an earlier one

This is a reincarnation of Harvey Harrison's patch:
	cpuset: sparse warnings in cpuset.c

Independently, Cliff Wickman moved the affected code,
from kernel/cpuset.c to kernel/cgroup.c, in his patch:
	cpusets: update_cpumask revision
Signed-off-by: NPaul Jackson <pj@sgi.com>
Cc: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Cliff Wickman <cpw@sgi.com>
Acked-by: NPaul Menage <menage@google.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3df91fe3
...@@ -1913,14 +1913,14 @@ int cgroup_scan_tasks(struct cgroup_scanner *scan) ...@@ -1913,14 +1913,14 @@ int cgroup_scan_tasks(struct cgroup_scanner *scan)
if (heap->size) { if (heap->size) {
for (i = 0; i < heap->size; i++) { for (i = 0; i < heap->size; i++) {
struct task_struct *p = heap->ptrs[i]; struct task_struct *q = heap->ptrs[i];
if (i == 0) { if (i == 0) {
latest_time = p->start_time; latest_time = q->start_time;
latest_task = p; latest_task = q;
} }
/* Process the task per the caller's callback */ /* Process the task per the caller's callback */
scan->process_task(p, scan); scan->process_task(q, scan);
put_task_struct(p); put_task_struct(q);
} }
/* /*
* If we had to process any tasks at all, scan again * If we had to process any tasks at all, scan again
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册