Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2688561iof; Wed, 8 Jun 2022 09:58:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHRlt4n7/JXSr8eWnFcAdxaZJAhgo2+8ggY9WAfVaTrDF8nrL17rTT6MQzhCtslvHLqT2a X-Received: by 2002:a17:902:e552:b0:163:6a5e:4e08 with SMTP id n18-20020a170902e55200b001636a5e4e08mr34621293plf.130.1654707506569; Wed, 08 Jun 2022 09:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654707506; cv=none; d=google.com; s=arc-20160816; b=BxTKE6h59gmSLjlk3V05l/gWte3tyfENuDt4XqBm01ryeWR03xFTDXUxz+BQflRYjH +L/mNKW10p3OjBpVXkZCWK+eHlt5icZwWNasfMFRmWuC7XMreuTuwN+lrLPqwfBLsdlJ UyilJU+T7IHmooHzmqKbf6215Hp8tjzFoTlyMAHjgVQcwCiFNiFwqfRAr8s+R3F/4B8Z pH4lFzV49Xs4mduUD/n5OVvAdWWmVscmBENxI8c7C6opy4BbBNF+/GVbu8DC5mHutPyX sSMs+/tocBruL33fgH3kSXELMhODf2JvXNg/W8Gan0DTzX37ifeiLZt/pA+FtQkGEjlI 4nNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from:dkim-signature; bh=K5M/bNqtaBIwPVRtDLnFoTNPvmJ/ZCoFjJV3JlUzG3Y=; b=GZagy4bdC+H//qzM8crjU8X+fKU5Rb3DjoesbFnWnVCZpc+TnfvlcBumRqw2NnlNNB Be1qcuTPQejaeyXkNo6Q2ZJx17kauC8jrT54FKXRPfRHoQd3aL7PcdtqJaGxndXT64cH c8T8tdeUUZiP6CVYTWeeyf1MZDzo/2fRvIar4G3WidWniwUqUbRfqvfDMVjYwjEfc/7B lWbJKlBQE2WsyKGtkrzsDN6fXjcdKw9OvSnt2np7weku1bIzXY6LhXnlE5hNrZt3CUgl oxckQ+QE+ZyaP8b2smvHf+Hq5fkbW49v+zVgTIvxiV5F71fPDU5wtgIk81oWXTxa+C7V TIdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=e1mBpbuP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d8-20020a170902aa8800b001678adeceecsi8471626plr.384.2022.06.08.09.58.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 09:58:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=e1mBpbuP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5315F2028BA; Wed, 8 Jun 2022 09:29:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245688AbiFHQ2p (ORCPT + 99 others); Wed, 8 Jun 2022 12:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245174AbiFHQ2I (ORCPT ); Wed, 8 Jun 2022 12:28:08 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 667231FE4E2; Wed, 8 Jun 2022 09:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:MIME-Version:References:In-Reply-To: Message-Id:Date:Cc:To:From:content-disposition; bh=K5M/bNqtaBIwPVRtDLnFoTNPvmJ/ZCoFjJV3JlUzG3Y=; b=e1mBpbuP0272reJp2/n3fzJ3mF xgqsjLNp+OzAJ83hIs+/y5VzWKomCAdGnv9i4IdYou7X56qa0jUJ7BigQLQBubBgaJoUV9wXGPpOH dEo6URhT7MTOV8LoMeeqvSuv+tgRb1Tz7PxWm+U1I4fakdvoldNBpFos1+DBZ1G1nqVMyueuZNWgh brIdez2WQTLx38DRm19KBVjkXPY6PVVM7hrVSH7GzIlTpKCTeXffvXYwm9kulWOMrlbhj3MrKx/8e 5BuYP4UFxIs4WtbWtbUUSd/DcYsUveJqPs5UN/Zv0TwkvIsFzl8JPiqRUVwNyUxhLfmhZzsBts6ie rxIWPZSA==; Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nyyXK-0026n6-HP; Wed, 08 Jun 2022 10:28:05 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.94.2) (envelope-from ) id 1nyyXG-000bdG-4x; Wed, 08 Jun 2022 10:27:58 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu Cc: Christoph Hellwig , Donald Buczek , Guoqing Jiang , Xiao Ni , Stephen Bates , Martin Oliveira , David Sloan , Logan Gunthorpe , Christoph Hellwig Date: Wed, 8 Jun 2022 10:27:46 -0600 Message-Id: <20220608162756.144600-2-logang@deltatee.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220608162756.144600-1-logang@deltatee.com> References: <20220608162756.144600-1-logang@deltatee.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, song@kernel.org, hch@infradead.org, buczek@molgen.mpg.de, guoqing.jiang@linux.dev, xni@redhat.com, sbates@raithlin.com, Martin.Oliveira@eideticom.com, David.Sloan@eideticom.com, logang@deltatee.com, hch@lst.de X-SA-Exim-Mail-From: gunthorp@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Subject: [PATCH v4 01/11] md/raid5-ppl: Fix argument order in bio_alloc_bioset() X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bio_alloc_bioset() takes a block device, number of vectors, the OP flags, the GFP mask and the bio set. However when the prototype was changed, the callisite in ppl_do_flush() had the OP flags and the GFP flags reversed. This introduced some sparse error: drivers/md/raid5-ppl.c:632:57: warning: incorrect type in argument 3 (different base types) drivers/md/raid5-ppl.c:632:57: expected unsigned int opf drivers/md/raid5-ppl.c:632:57: got restricted gfp_t [usertype] drivers/md/raid5-ppl.c:633:61: warning: incorrect type in argument 4 (different base types) drivers/md/raid5-ppl.c:633:61: expected restricted gfp_t [usertype] gfp_mask drivers/md/raid5-ppl.c:633:61: got unsigned long long The sparse error introduction may not have been reported correctly by 0day due to other work that was cleaning up other sparse errors in this area. Fixes: 609be1066731 ("block: pass a block_device and opf to bio_alloc_bioset") Signed-off-by: Logan Gunthorpe Reviewed-by: Christoph Hellwig --- drivers/md/raid5-ppl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/raid5-ppl.c b/drivers/md/raid5-ppl.c index 973e2e06f19c..0a2e4806b1ec 100644 --- a/drivers/md/raid5-ppl.c +++ b/drivers/md/raid5-ppl.c @@ -629,9 +629,9 @@ static void ppl_do_flush(struct ppl_io_unit *io) if (bdev) { struct bio *bio; - bio = bio_alloc_bioset(bdev, 0, GFP_NOIO, + bio = bio_alloc_bioset(bdev, 0, REQ_OP_WRITE | REQ_PREFLUSH, - &ppl_conf->flush_bs); + GFP_NOIO, &ppl_conf->flush_bs); bio->bi_private = io; bio->bi_end_io = ppl_flush_endio; -- 2.30.2