diff options
author | David Rientjes <rientjes@google.com> | 2008-02-07 03:14:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:19 -0500 |
commit | 3062fc67dad01b1d2a15d58c709eff946389eca4 (patch) | |
tree | 521b26bda2f6b106c8b3747a88214eec5f24b998 /mm/memcontrol.c | |
parent | e1a1cd590e3fcb0d2e230128daf2337ea55387dc (diff) |
memcontrol: move mm_cgroup to header file
Inline functions must preceed their use, so mm_cgroup() should be defined
in linux/memcontrol.h.
include/linux/memcontrol.h:48: warning: 'mm_cgroup' declared inline after
being called
include/linux/memcontrol.h:48: warning: previous declaration of
'mm_cgroup' was here
[akpm@linux-foundation.org: build fix]
[akpm@linux-foundation.org: nuther build fix]
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index ac8774426fec..f6cdbf755ed3 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -110,11 +110,6 @@ struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p) | |||
110 | struct mem_cgroup, css); | 110 | struct mem_cgroup, css); |
111 | } | 111 | } |
112 | 112 | ||
113 | inline struct mem_cgroup *mm_cgroup(struct mm_struct *mm) | ||
114 | { | ||
115 | return rcu_dereference(mm->mem_cgroup); | ||
116 | } | ||
117 | |||
118 | void mm_init_cgroup(struct mm_struct *mm, struct task_struct *p) | 113 | void mm_init_cgroup(struct mm_struct *mm, struct task_struct *p) |
119 | { | 114 | { |
120 | struct mem_cgroup *mem; | 115 | struct mem_cgroup *mem; |