Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d20199e1 authored by Rashika Kheria's avatar Rashika Kheria Committed by Linus Torvalds
Browse files

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: default avatarRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2eb2e141
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ static void free_page_cgroup(void *addr)
	}
}

void __free_page_cgroup(unsigned long pfn)
static void __free_page_cgroup(unsigned long pfn)
{
	struct mem_section *ms;
	struct page_cgroup *base;
@@ -188,7 +188,7 @@ void __free_page_cgroup(unsigned long pfn)
	ms->page_cgroup = NULL;
}

int __meminit online_page_cgroup(unsigned long start_pfn,
static int __meminit online_page_cgroup(unsigned long start_pfn,
				unsigned long nr_pages,
				int nid)
{
@@ -223,7 +223,7 @@ int __meminit online_page_cgroup(unsigned long start_pfn,
	return -ENOMEM;
}

int __meminit offline_page_cgroup(unsigned long start_pfn,
static int __meminit offline_page_cgroup(unsigned long start_pfn,
				unsigned long nr_pages, int nid)
{
	unsigned long start, end, pfn;