lkml.org 
[lkml]   [2008]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/2] cgroup: annotate cgroup_init_subsys with __init
It is called by cgroup_init() and cgroup_init_early() only,
which are annotated with __init.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
kernel/cgroup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index e9c2fb0..8d833b6 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2388,7 +2388,7 @@ static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry)
return 0;
}

-static void cgroup_init_subsys(struct cgroup_subsys *ss)
+static void __init cgroup_init_subsys(struct cgroup_subsys *ss)
{
struct cgroup_subsys_state *css;
struct list_head *l;
-- 1.5.4.rc3

\
 
 \ /
  Last update: 2008-03-10 08:33    [W:0.033 / U:3.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site