Skip to content

Commit

Permalink
mm: make init_section_page_cgroup() static
Browse files Browse the repository at this point in the history
Sparse output following warning.

mm/page_cgroup.c:100:15: warning: symbol 'init_section_page_cgroup' was
not declared.  Should it be static?

cleanup here.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Jan 6, 2009
1 parent 077cbc5 commit feb1669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ struct page_cgroup *lookup_page_cgroup(struct page *page)
}

/* __alloc_bootmem...() is protected by !slab_available() */
int __init_refok init_section_page_cgroup(unsigned long pfn)
static int __init_refok init_section_page_cgroup(unsigned long pfn)
{
struct mem_section *section;
struct page_cgroup *base, *pc;
Expand Down

0 comments on commit feb1669

Please sign in to comment.