@@ -10,7 +10,6 @@ struct vm_area_struct;
struct mm_struct;
extern void dump_page(struct page *page, const char *reason);
-extern void __dump_page(struct page *page, const char *reason);
void dump_vma(const struct vm_area_struct *vma);
void dump_mm(const struct mm_struct *mm);
@@ -42,7 +42,7 @@ const struct trace_print_flags vmaflag_names[] = {
{0, NULL}
};
-void __dump_page(struct page *page, const char *reason)
+static void __dump_page(struct page *page, const char *reason)
{
struct page *head = compound_head(page);
struct address_space *mapping;
No __dump_page() caller, so make it static. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- include/linux/mmdebug.h | 1 - mm/debug.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)