aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_cgroup.c
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-04-03 17:48:05 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 19:21:02 -0400
commitd20199e1f5930c4819e63bd21be240f317a53815 (patch)
treebce7002ac0550ed3f6c1b08e323c97a840018964 /mm/page_cgroup.c
parent2eb2e141c018b768c88ff84eafa1279f11f2e248 (diff)
mm/page_cgroup.c: mark functions as static
Mark functions as static in page_cgroup.c because they are not used outside this file. This eliminates the following warning in mm/page_cgroup.c: mm/page_cgroup.c:177:6: warning: no previous prototype for `__free_page_cgroup' [-Wmissing-prototypes] mm/page_cgroup.c:190:15: warning: no previous prototype for `online_page_cgroup' [-Wmissing-prototypes] mm/page_cgroup.c:225:15: warning: no previous prototype for `offline_page_cgroup' [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_cgroup.c')
-rw-r--r--mm/page_cgroup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c
index cfd162882c00..3708264d2833 100644
--- a/mm/page_cgroup.c
+++ b/mm/page_cgroup.c
@@ -175,7 +175,7 @@ static void free_page_cgroup(void *addr)
175 } 175 }
176} 176}
177 177
178void __free_page_cgroup(unsigned long pfn) 178static void __free_page_cgroup(unsigned long pfn)
179{ 179{
180 struct mem_section *ms; 180 struct mem_section *ms;
181 struct page_cgroup *base; 181 struct page_cgroup *base;
@@ -188,9 +188,9 @@ void __free_page_cgroup(unsigned long pfn)
188 ms->page_cgroup = NULL; 188 ms->page_cgroup = NULL;
189} 189}
190 190
191int __meminit online_page_cgroup(unsigned long start_pfn, 191static int __meminit online_page_cgroup(unsigned long start_pfn,
192 unsigned long nr_pages, 192 unsigned long nr_pages,
193 int nid) 193 int nid)
194{ 194{
195 unsigned long start, end, pfn; 195 unsigned long start, end, pfn;
196 int fail = 0; 196 int fail = 0;
@@ -223,8 +223,8 @@ int __meminit online_page_cgroup(unsigned long start_pfn,
223 return -ENOMEM; 223 return -ENOMEM;
224} 224}
225 225
226int __meminit offline_page_cgroup(unsigned long start_pfn, 226static int __meminit offline_page_cgroup(unsigned long start_pfn,
227 unsigned long nr_pages, int nid) 227 unsigned long nr_pages, int nid)
228{ 228{
229 unsigned long start, end, pfn; 229 unsigned long start, end, pfn;
230 230