]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: move mem_cgroup_is_root upwards
authorMichal Hocko <mhocko@suse.cz>
Wed, 26 Sep 2012 01:33:56 +0000 (11:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 26 Sep 2012 05:45:07 +0000 (15:45 +1000)
commit7b7833adde11a92aeff6f4b6d668cd15f5468e7e
treedc73dfb24257287d0c3f913c84d975518804d18f
parent2e243cc6bff7f7b9d7ad481fac87ec6b004611a0
memcg: move mem_cgroup_is_root upwards

kmem code uses this function and it is better to not use forward
declarations for static inline functions as some (older) compilers don't
like it:

gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)

mm/memcontrol.c:421: warning: `mem_cgroup_is_root' declared inline after being called
mm/memcontrol.c:421: warning: previous declaration of `mem_cgroup_is_root' was here

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: Glauber Costa <glommer@parallels.com>
Cc: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c