From patchwork Tue Apr 5 11:56:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8751071 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 342FDC0553 for ; Tue, 5 Apr 2016 12:13:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DA3C20351 for ; Tue, 5 Apr 2016 12:13:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 943AF2028D for ; Tue, 5 Apr 2016 12:13:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758081AbcDEL7s (ORCPT ); Tue, 5 Apr 2016 07:59:48 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34707 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755668AbcDEL7p (ORCPT ); Tue, 5 Apr 2016 07:59:45 -0400 Received: by mail-pf0-f195.google.com with SMTP id d184so1171287pfc.1; Tue, 05 Apr 2016 04:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QGMh3A5Z2VNX+VD7qQnZbHa6M1RrIwNGQhVmxw+h6Y0=; b=bvdRFbVvsznQ3gUts+Zyso1Uw0M5bmJYgAyiyBeXTxHOfKCilOxl7O8Iqsbiiddco+ f8J127/UN71lzDoSuInl1KO0jaYGLrMXjzG3HdNgVsWhuvoXPEEqvRHXvq75RM0fVGSW v4UFHXoRQKj2ZozY9/cWzLkGawmTWKSyn94OhoAhKx81qhcYrrv84dmh5zVyd4lRQHBH /ZYDiL3ejDlXzI5Npr1xTrhUjaFKpePljepxlv/oIzWDA4zXYZppK+PcC7+4miBeU95Y ydAjBPx/xglfIfDxs/YO6QHyMygz7SZGvpnWTf3rktD7sBw3ofdq3kuvs9kjvHRmY4Nj R1FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QGMh3A5Z2VNX+VD7qQnZbHa6M1RrIwNGQhVmxw+h6Y0=; b=aabZzeTUYztJW92AtpnroWbAPBhXqQ92tSEGg6rjMJfv1h6J/f+K8lSfaAzZAqZ6Py E0GXHEHZ4ZdDgEt9pcH3U+GnL6lEw/zgvpmZB02Jtq6xFJvY2RPV+qzVsEewqgHae0lz CvXVkCUKV52JRiJxzimul72wvdo68x+Inutp36Jyc35KyuOhBcWYWkmDpDEEFyiNzEdV 5lhlU3lMDlcsPG6+GyRqyQPpNGw6gGFfIfTIvAeb56XK1e9Q1+53OElFdbMGWWP0Q6Bu vf2kqf2y7DFkiU/awoUvDZZ4LI/jk/uHIZgbNrdXriP7OvGd+XzGwtNka1QBqSxyJyB6 FvlA== X-Gm-Message-State: AD7BkJIGo1cuRKbula6QHsShEHTqX0DqJHlXMFnRI8DsKAPLk4KMPy94AWLMlv+oQ0qG9w== X-Received: by 10.98.73.69 with SMTP id w66mr28756119pfa.106.1459857579396; Tue, 05 Apr 2016 04:59:39 -0700 (PDT) Received: from localhost (56.34.213.162.lcy-01.canonistack.canonical.com. [162.213.34.56]) by smtp.gmail.com with ESMTPSA id g23sm46506088pfg.35.2016.04.05.04.59.33 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Apr 2016 04:59:38 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Boaz Harrosh , Ming Lei , Jiri Kosina , Hannes Reinecke , NeilBrown , Rasmus Villemoes Subject: [PATCH 06/27] block: floppy: use bio_set_vec_table() Date: Tue, 5 Apr 2016 19:56:51 +0800 Message-Id: <1459857443-20611-7-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459857443-20611-1-git-send-email-tom.leiming@gmail.com> References: <1459857443-20611-1-git-send-email-tom.leiming@gmail.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ming Lei --- drivers/block/floppy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 84708a5..b5b0e68 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -3811,7 +3811,7 @@ static int __floppy_read_block_0(struct block_device *bdev, int drive) cbdata.drive = drive; bio_init(&bio); - bio.bi_io_vec = &bio_vec; + bio_set_vec_table(&bio, &bio_vec, 1); bio_vec.bv_page = page; bio_vec.bv_len = size; bio_vec.bv_offset = 0;