Skip to content

Commit

Permalink
mm/page_cgroup.c: mark functions as static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rashika authored and torvalds committed Apr 3, 2014
1 parent 2eb2e14 commit d20199e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mm/page_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -188,9 +188,9 @@ void __free_page_cgroup(unsigned long pfn)
ms->page_cgroup = NULL;
}

int __meminit online_page_cgroup(unsigned long start_pfn,
unsigned long nr_pages,
int nid)
static int __meminit online_page_cgroup(unsigned long start_pfn,
unsigned long nr_pages,
int nid)
{
unsigned long start, end, pfn;
int fail = 0;
Expand Down Expand Up @@ -223,8 +223,8 @@ int __meminit online_page_cgroup(unsigned long start_pfn,
return -ENOMEM;
}

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

Expand Down

0 comments on commit d20199e

Please sign in to comment.