summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2014-01-10 12:41:25 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2014-01-10 12:41:25 +1100
commitc036d1da4a22b50993b953f30b00847ff4a8745a (patch)
treecbfc6339d24dabec94d303180c5b235ce8329d9a /include
parentd6e2003ce77e3059dab34fb4276e067d048c7ca3 (diff)
mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE fix
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mmdebug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmdebug.h b/include/linux/mmdebug.h
index e522734cd61a..8bb64900da25 100644
--- a/include/linux/mmdebug.h
+++ b/include/linux/mmdebug.h
@@ -2,6 +2,7 @@
#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)