]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE fix
authorSasha Levin <sasha.levin@oracle.com>
Fri, 3 Jan 2014 03:10:04 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:04 +0000 (14:10 +1100)
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>
include/linux/mmdebug.h

index e522734cd61a5bbd03f75c3a07c1e1551edf15ba..8bb64900da25f437bec6cc5715ebbc3008229aa1 100644 (file)
@@ -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)