ANDROID: cgroup: memcg: pass correct argument to subsys_cgroup_allow_attach

Pass correct argument to subsys_cgroup_allow_attach(), which
expects 'struct cgroup_subsys_state *' argument but we pass
'struct cgroup *' instead which doesn't seem right.

This fixes following 'incompatible pointer type' compiler warning:
----------
  CC      mm/memcontrol.o
mm/memcontrol.c: In function ‘mem_cgroup_allow_attach’:
mm/memcontrol.c:5052:2: warning: passing argument 1 of ‘subsys_cgroup_allow_attach’ from incompatible pointer type [enabled by default]
In file included from include/linux/memcontrol.h:22:0,
                 from mm/memcontrol.c:29:
include/linux/cgroup.h:953:5: note: expected ‘struct cgroup_subsys_state *’ but argument is of type ‘struct cgroup *’
----------

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
(cherry picked from commit f24f6aecb75e62421eaed32c8ef807f24a20a779)

Change-Id: I9762de49df713614e71ada4c0712ee66aedd0851
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/285964
Reviewed-by: Olof Johansson <olofj@chromium.org>
This commit is contained in:
Amit Pundir
2015-04-01 13:58:39 +05:30
committed by ChromeOS Commit Bot
parent 112306e71a
commit 640bc0916c

View File

@@ -7082,7 +7082,7 @@ static int mem_cgroup_can_attach(struct cgroup_subsys_state *css,
static int mem_cgroup_allow_attach(struct cgroup_subsys_state *css,
struct cgroup_taskset *tset)
{
return subsys_cgroup_allow_attach(css->cgroup, tset);
return subsys_cgroup_allow_attach(css, tset);
}
static void mem_cgroup_cancel_attach(struct cgroup_subsys_state *css,