[kernel/f16] Shutup floppy.c. Abrt files enough bugs as it is (rhbz 749887)

Josh Boyer jwboyer at fedoraproject.org
Fri Oct 28 20:21:45 UTC 2011


commit 4cce38ece8fc1fe23dc78dffc84121c5ba7a0ac6
Author: Josh Boyer <jwboyer at redhat.com>
Date:   Fri Oct 28 15:49:27 2011 -0400

    Shutup floppy.c.  Abrt files enough bugs as it is (rhbz 749887)

 floppy-drop-disable_hlt-warning.patch |   13 +++++++++++++
 kernel.spec                           |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/floppy-drop-disable_hlt-warning.patch b/floppy-drop-disable_hlt-warning.patch
new file mode 100644
index 0000000..8f0849e
--- /dev/null
+++ b/floppy-drop-disable_hlt-warning.patch
@@ -0,0 +1,13 @@
+diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
+index 9955a53..aef66d1 100644
+--- a/drivers/block/floppy.c
++++ b/drivers/block/floppy.c
+@@ -1038,7 +1038,7 @@ static void floppy_disable_hlt(void)
+ {
+ 	unsigned long flags;
+ 
+-	WARN_ONCE(1, "floppy_disable_hlt() scheduled for removal in 2012");
++	printk(KERN_INFO "floppy_disable_hlt() scheduled for removal in 2012");
+ 	spin_lock_irqsave(&floppy_hlt_lock, flags);
+ 	if (!hlt_disabled) {
+ 		hlt_disabled = 1;
diff --git a/kernel.spec b/kernel.spec
index 1aaf2c6..79ff54b 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -51,7 +51,7 @@ Summary: The Linux kernel
 # For non-released -rc kernels, this will be prepended with "0.", so
 # for example a 3 here will become 0.3
 #
-%global baserelease 5
+%global baserelease 6
 %global fedora_build %{baserelease}
 
 # base_sublevel is the kernel version we're starting with and patching
@@ -664,6 +664,7 @@ Patch452: linux-2.6.30-no-pcspkr-modalias.patch
 Patch460: linux-2.6-serial-460800.patch
 
 Patch470: die-floppy-die.patch
+Patch471: floppy-drop-disable_hlt-warning.patch
 
 Patch510: linux-2.6-silence-noise.patch
 Patch530: linux-2.6-silence-fbcon-logo.patch
@@ -1304,6 +1305,7 @@ ApplyPatch linux-2.6-input-kill-stupid-messages.patch
 
 # stop floppy.ko from autoloading during udev...
 ApplyPatch die-floppy-die.patch
+ApplyPatch floppy-drop-disable_hlt-warning.patch
 
 ApplyPatch linux-2.6.30-no-pcspkr-modalias.patch
 
@@ -2107,6 +2109,9 @@ fi
 # and build.
 
 %changelog
+* Fri Oct 28 2011 Josh Boyer <jwboyer at redhat.com>
+- Add patch to prevent tracebacks on a warning in floppy.c (rhbz 749887)
+
 * Wed Oct 26 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.0-5
 - Rebuilt for glibc bug#747377
 


More information about the scm-commits mailing list