]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: move mem_cgroup_is_root upwards
authorMichal Hocko <mhocko@suse.cz>
Fri, 28 Sep 2012 00:19:53 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:49:35 +0000 (16:49 +1000)
commita25f1bd6770ed791583682653f5274abaeaa2b55
tree388f2ebfc8f7394341c18a983f1ff3ddc8170dbe
parentdb2376433482469fea93aafab0e9a8694fdbbb7e
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