]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/mmdebug.h
lz4: fix wrong compress buffer size for 64-bits
[karo-tx-linux.git] / include / linux / mmdebug.h
index 772362adf4713b77be041b6232097c97a7f5aad7..053824b0a412e0c2ca371e3844c1534b913fb6d0 100644 (file)
@@ -56,4 +56,10 @@ void dump_mm(const struct mm_struct *mm);
 #define VIRTUAL_BUG_ON(cond) do { } while (0)
 #endif
 
+#ifdef CONFIG_DEBUG_VM_PGFLAGS
+#define VM_BUG_ON_PGFLAGS(cond, page) VM_BUG_ON_PAGE(cond, page)
+#else
+#define VM_BUG_ON_PGFLAGS(cond, page) BUILD_BUG_ON_INVALID(cond)
+#endif
+
 #endif