summaryrefslogtreecommitdiffstats
path: root/vmbugon-warnon.patch
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2012-07-31 09:48:32 -0400
committerDave Jones <davej@redhat.com>2012-07-31 09:48:32 -0400
commitb37f31d7f9a0e1840f7c0cab17ce8c1d4a35bfdb (patch)
treec53a066a19679dde2f78e851014bc05f68cb2630 /vmbugon-warnon.patch
parent618d6ec8fe4e4babb5034e7ef82a61f74355c8ff (diff)
downloadkernel-b37f31d7f9a0e1840f7c0cab17ce8c1d4a35bfdb.tar.gz
kernel-b37f31d7f9a0e1840f7c0cab17ce8c1d4a35bfdb.tar.xz
kernel-b37f31d7f9a0e1840f7c0cab17ce8c1d4a35bfdb.zip
Change VM_BUG_ON's to be WARN_ONs instead.
Diffstat (limited to 'vmbugon-warnon.patch')
-rw-r--r--vmbugon-warnon.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/vmbugon-warnon.patch b/vmbugon-warnon.patch
new file mode 100644
index 000000000..fd8efc769
--- /dev/null
+++ b/vmbugon-warnon.patch
@@ -0,0 +1,20 @@
+diff --git a/include/linux/mmdebug.h b/include/linux/mmdebug.h
+index 580bd58..3d908e9 100644
+--- a/include/linux/mmdebug.h
++++ b/include/linux/mmdebug.h
+@@ -2,13 +2,13 @@
+ #define LINUX_MM_DEBUG_H 1
+
+ #ifdef CONFIG_DEBUG_VM
+-#define VM_BUG_ON(cond) BUG_ON(cond)
++#define VM_BUG_ON(cond) WARN_ON(cond)
+ #else
+ #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond)
+ #endif
+
+ #ifdef CONFIG_DEBUG_VIRTUAL
+-#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
++#define VIRTUAL_BUG_ON(cond) WARN_ON(cond)
+ #else
+ #define VIRTUAL_BUG_ON(cond) do { } while (0)
+ #endif