From: Stephen Hemminger Date: Tue, 15 Jun 2010 11:21:11 +0000 (+0200) Subject: floppy: silence warning during disk test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=41a55b4de396f675485a3f3cb3e1b117316e9ce9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- 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) bio.bi_size = size; bio.bi_bdev = bdev; bio.bi_sector = 0; + bio.bi_flags = BIO_QUIET; init_completion(&complete); bio.bi_private = &complete; bio.bi_end_io = floppy_rb0_complete;