[kernel] Change VM_BUG_ON's to be WARN_ONs instead.

Dave Jones davej at fedoraproject.org
Tue Jul 31 13:48:54 UTC 2012


commit b37f31d7f9a0e1840f7c0cab17ce8c1d4a35bfdb
Author: Dave Jones <davej at redhat.com>
Date:   Tue Jul 31 09:48:32 2012 -0400

    Change VM_BUG_ON's to be WARN_ONs instead.

 kernel.spec          |    7 +++++++
 vmbugon-warnon.patch |   20 ++++++++++++++++++++
 2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/kernel.spec b/kernel.spec
index 6e70306..2b39e4a 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -651,6 +651,8 @@ Patch09: linux-2.6-upstream-reverts.patch
 
 Patch100: taint-vbox.patch
 
+Patch110: vmbugon-warnon.patch
+
 Patch390: linux-2.6-defaults-acpi-video.patch
 Patch391: linux-2.6-acpi-video-dos.patch
 Patch394: linux-2.6-acpi-debug-infinite-loop.patch
@@ -1293,6 +1295,8 @@ ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
 
 ApplyPatch taint-vbox.patch
 
+ApplyPatch vmbugon-warnon.patch
+
 # Architecture patches
 # x86(-64)
 
@@ -2284,6 +2288,9 @@ fi
 #                 ||----w |
 #                 ||     ||
 %changelog
+* Tue Jul 31 2012 Dave Jones <davej at redhat.com>
+- Change VM_BUG_ON's to be WARN_ONs instead.
+
 * Tue Jul 31 2012 Josh Boyer <jwboyer at redhat.com>
 - Move modules needed by Shorewall back to main kernel package (rhbz 844436)
 
diff --git a/vmbugon-warnon.patch b/vmbugon-warnon.patch
new file mode 100644
index 0000000..fd8efc7
--- /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


More information about the scm-commits mailing list