projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1c9d8
)
memcg: fix section mismatch
author
Li Zefan
<
[email protected]
>
Thu, 15 Jan 2009 21:51:25 +0000
(13:51 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 16 Jan 2009 00:39:41 +0000
(16:39 -0800)
At system boot when creating the top cgroup, mem_cgroup_create() calls
enable_swap_cgroup() which is marked as __init, so mark
mem_cgroup_create() as __ref to avoid false section mismatch warning.
Reported-by: Rakib Mullick <
[email protected]
>
Signed-off-by: Li Zefan <
[email protected]
>
Acked-by; KAMEZAWA Hiroyuki <
[email protected]
>
Cc: Balbir Singh <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memcontrol.c
patch
|
blob
|
history
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index fb62b4335fa94b2e82a51716285f6f173e279853..f0dc076adf05730dc9530d6471cc094a24cf066b 100644
(file)
--- a/
mm/memcontrol.c
+++ b/
mm/memcontrol.c
@@
-2202,7
+2202,7
@@
static void __init enable_swap_cgroup(void)
}
#endif
-static struct cgroup_subsys_state *
+static struct cgroup_subsys_state *
__ref
mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont)
{
struct mem_cgroup *mem, *parent;