aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-06-15 07:21:11 -0400
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 12:15:34 -0400
commit41a55b4de396f675485a3f3cb3e1b117316e9ce9 (patch)
tree94fbff89dc6a74159cf62b1d6b66e44f241c6c3f
parentbe7a12bb1a7dc185d5143e3ae434f8a855f66a31 (diff)
floppy: silence warning during disk test
The first thing the floppy does is read block 0 to test geometry and to test for disk presence. If disk is not present this causes a console warning message about failed I/O. Set flag to silence. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--drivers/block/floppy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 7ba239e8f0dc..5816387f9bce 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -3829,6 +3829,7 @@ static int __floppy_read_block_0(struct block_device *bdev)
3829 bio.bi_size = size; 3829 bio.bi_size = size;
3830 bio.bi_bdev = bdev; 3830 bio.bi_bdev = bdev;
3831 bio.bi_sector = 0; 3831 bio.bi_sector = 0;
3832 bio.bi_flags = BIO_QUIET;
3832 init_completion(&complete); 3833 init_completion(&complete);
3833 bio.bi_private = &complete; 3834 bio.bi_private = &complete;
3834 bio.bi_end_io = floppy_rb0_complete; 3835 bio.bi_end_io = floppy_rb0_complete;