I messed up and forgot to commit this fix before sending out the original
patch.
It fixes build issues in various files using VM_BUG_ON_PAGE.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
#define LINUX_MM_DEBUG_H 1
#ifdef CONFIG_DEBUG_VM
+extern void dump_page(struct page *page);
#define VM_BUG_ON(cond) BUG_ON(cond)
#define VM_BUG_ON_PAGE(cond, page) \
do { if (unlikely(cond)) { dump_page(page); BUG(); } } while(0)