]> 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>
Tue, 25 Sep 2012 08:46:23 +0000 (18:46 +1000)
commit2063178ab30a765b6d723c185c09a153d4fa271c
tree8f6732dce5d76e26165a7e10b57d0a578f96b6bf
parentea3c1575ef6d60866a255da7d156d0e71a63e86e
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