2008-02-13 21:42:42

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make cgroup_enable_task_cg_lists() static

This patch makes the needlessly global cgroup_enable_task_cg_lists()
static.

Signed-off-by: Adrian Bunk <[email protected]>

---
a9d039842fb8c3170e63d2eba3301cf9865a864e diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 4766bb6..0317f79 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1704,7 +1704,7 @@ static void cgroup_advance_iter(struct cgroup *cgrp,
* The tasklist_lock is not held here, as do_each_thread() and
* while_each_thread() are protected by RCU.
*/
-void cgroup_enable_task_cg_lists(void)
+static void cgroup_enable_task_cg_lists(void)
{
struct task_struct *p, *g;
write_lock(&css_set_lock);


2008-02-13 21:55:30

by David Rientjes

[permalink] [raw]
Subject: Re: [2.6 patch] make cgroup_enable_task_cg_lists() static

On Wed, 13 Feb 2008, Adrian Bunk wrote:

> This patch makes the needlessly global cgroup_enable_task_cg_lists()
> static.
>
> Signed-off-by: Adrian Bunk <[email protected]>

Acked-by: David Rientjes <[email protected]>