]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memcg-move-hugetlb-resource-count-to-parent-cgroup-on-memcg-removal-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 3 May 2012 05:43:41 +0000 (15:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:26 +0000 (15:46 +1000)
fix CONFIG_MEM_RES_CTLR_HUGETLB=n warnings

include/linux/memcontrol.h:504: warning: 'struct cgroup' declared inside parameter list
include/linux/memcontrol.h:504: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/memcontrol.h:509: warning: 'struct cgroup' declared inside parameter list

Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/hugetlb.h
include/linux/memcontrol.h

index ff450b4fc417d33c5bb9ca3d4edddc9fdadfcb1b..939cff72b6b72a9193c1087f4b0be9d694bf97b1 100644 (file)
@@ -350,10 +350,6 @@ static inline unsigned int pages_per_huge_page(struct hstate *h)
 
 #ifdef CONFIG_MEM_RES_CTLR_HUGETLB
 extern int hugetlb_force_memcg_empty(struct cgroup *cgroup);
-#else
-static inline int hugetlb_force_memcg_empty(struct cgroup *cgroup)
-{
-       return 0;
-}
 #endif
+
 #endif /* _LINUX_HUGETLB_H */
index 70317e598bf8af01464b5f2ed0a8ce5d8281ec7e..6a293b85f9b3512e451654d002dc6950a83f21ce 100644 (file)
@@ -499,17 +499,6 @@ static inline int mem_cgroup_hugetlb_file_init(int idx)
        return 0;
 }
 
-static inline int
-mem_cgroup_move_hugetlb_parent(int idx, struct cgroup *cgroup,
-                              struct page *page)
-{
-       return 0;
-}
-
-static inline bool mem_cgroup_have_hugetlb_usage(struct cgroup *cgroup)
-{
-       return 0;
-}
 #endif  /* CONFIG_MEM_RES_CTLR_HUGETLB */
 #endif /* _LINUX_MEMCONTROL_H */