]> 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>
Thu, 27 Sep 2012 07:27:00 +0000 (17:27 +1000)
commit46026a4c65d016d9276602e47ef8de5a1b254258
tree6850a996c8ace18e5a8d028ee6b479047e967728
parenteba53b31b2954e9d3c62942ef007a57eb3832e8c
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