]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: move mem_cgroup_is_root upwards
authorMichal Hocko <mhocko@suse.cz>
Fri, 21 Sep 2012 01:01:39 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:58:58 +0000 (15:58 +1000)
commit6342efb686900f5a2420ffe83b4a1c8cfc2da89b
tree32e42c91479e61a20af08a188aa073b16af4c690
parent5237515a454958bd44f8e435fce2df66e8794bcf
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