]> 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>
Wed, 25 Apr 2012 01:03:37 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:22 +0000 (15:17 +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 6b4e273f1f1d28013885934a12a3a308fe15f032..828b073a9f703ebccadbee00ddb5ced2929a7114 100644 (file)
@@ -345,10 +345,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 */