Message ID | 350bd9c62ce575267a2b38625ab767c332429bc1.1680108414.git.johannes.thumshirn@wdc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7FF1C6FD18 for <linux-mm@archiver.kernel.org>; Wed, 29 Mar 2023 17:07:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7318528000C; Wed, 29 Mar 2023 13:07:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6BB5A280001; Wed, 29 Mar 2023 13:07:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55CA928000C; Wed, 29 Mar 2023 13:07:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 3EC0A280001 for <linux-mm@kvack.org>; Wed, 29 Mar 2023 13:07:18 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 1EB6F40CA3 for <linux-mm@kvack.org>; Wed, 29 Mar 2023 17:07:18 +0000 (UTC) X-FDA: 80622566556.13.21F725D Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by imf21.hostedemail.com (Postfix) with ESMTP id 0B4861C0027 for <linux-mm@kvack.org>; Wed, 29 Mar 2023 17:07:15 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=BksIfeiF; spf=pass (imf21.hostedemail.com: domain of "prvs=445a3f1bb=johannes.thumshirn@wdc.com" designates 216.71.154.45 as permitted sender) smtp.mailfrom="prvs=445a3f1bb=johannes.thumshirn@wdc.com"; dmarc=pass (policy=quarantine) header.from=wdc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680109636; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=GDJ+FA6jm0FuzkoAjCv9Foq+v6LVPc682g0yuduBtNI=; b=pIXBsLbY7EblXS4dgDS112fyqtQGwBV31QfcDGydk1ZU72doNssfdU/4jkQUV85Hw7Ju9R REYuXigUE7ezwiZ62uL4i2QYNeJedgIPJSpveWUMFdKJCSlZj3RYE95M+V1oRbwVGyex81 ssDU74xt+uuDNT4TsuiHKpxTmNaXAR0= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=BksIfeiF; spf=pass (imf21.hostedemail.com: domain of "prvs=445a3f1bb=johannes.thumshirn@wdc.com" designates 216.71.154.45 as permitted sender) smtp.mailfrom="prvs=445a3f1bb=johannes.thumshirn@wdc.com"; dmarc=pass (policy=quarantine) header.from=wdc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680109636; a=rsa-sha256; cv=none; b=Dbv3ONrZBPD4NuT8RmnwWppiflIhPlelYcm6xou8eKzoHOcotsSuR897L1Yvb3fPUJqTvr MLMg9vKYJVbKfSJp/dV7f90ATN4ERzqPoTao+aNXzGyXZWXVgFPhMcx8r1fWjmtwfTtuE9 v5LOM5mrDAMouSr+3IBon02jAYRioro= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1680109635; x=1711645635; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=25kvrOzZLFw61mLSH/q2oY93aAmAj3Hgw8SlB4MjMEs=; b=BksIfeiFb5/iBCjl8Y5ZuJ/miuJWxxYvaqoN2H6KKSt5kKN2szt9rh52 7DybsF+QDYl2iAPDHrZu065dnY8Jd/k8hvkEnOKp9lHEsm+/YFtNhVBaF rgtz8B9IY14kv9MlcS5NnhfX1Yuu3zkLorWpm8DxKLmE0Xr7+WwPweZi6 UymwK8ukPdjP90P/WzdbDxb8y2MB9ZzROK7+/sm23FWvkK7ww0xS54kve EGd4OtZxNvqgHEoJ0LDxRDXPyio9HCGjhPAiMW5dek4p7bBINUdVGMnP2 8Gp6rICN7bj6zdVUht1Luy4ryGdzxdJDmBF+pRkZKC8Z9ppER1GaPyLYD g==; X-IronPort-AV: E=Sophos;i="5.98,301,1673884800"; d="scan'208";a="226807125" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 30 Mar 2023 01:07:15 +0800 IronPort-SDR: YQ8NsJh+6QbYtRO3pgFtpRJsYKgWrrQRm6mdYOdWNBaIzz1Qi3vfLogt0A+R9QTVGq4jGR0+Bb lIQqiOtSBUBhi4mLBKMZFctTwiowaN/1glHOLZwrl31Dw+SMXrhl9Z8yqjcCAbwLu+9TFqi8V2 G6mhI/46Wqx6TVfd1M5UWRMWlsMM6LnlqlHv1XXbTa66qFVHMLi6hv2BX/PBvsOfwAcpj2sw5T L+l/WITcIA/P9VIzQh67DBHs7Is/jtLgS8fFH+WDlZJVKT0HaMZ0Vn0Ct2scB2tM0pgRBWsSO6 wdE= Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 29 Mar 2023 09:23:24 -0700 IronPort-SDR: 8RmI6zmAOTXFtW/2/SG8J8KNZRYzrAFRJ4uNnILqTeeXG066nahjBZoS9n+NN5J3vTZ6r4tTp4 tgf7Xeh71IvP+ShrkeXh87FE6UCEB3t5gJLO+7c48mDUod+PtEXFK6+gNDb9SNHaMZjGaFFZq5 oSS15Elmdtz3zYQl0pCPbsA+5iw4KtmRTEhmlTSesmM+hPv3lcg9UKEZ8wbUNW7w/THKtkgzir PeuIpe63rdIdw98aKHJN1lP5OhNWW5Tro+ygbZuffnM7QyFj0xiIF2ZERO387ULFLAsv0/t4Fc XtI= WDCIronportException: Internal Received: from unknown (HELO redsun91.ssa.fujisawa.hgst.com) ([10.149.66.72]) by uls-op-cesaip01.wdc.com with ESMTP; 29 Mar 2023 10:07:14 -0700 From: Johannes Thumshirn <johannes.thumshirn@wdc.com> To: Jens Axboe <axboe@kernel.dk> Cc: Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.de>, Chaitanya Kulkarni <kch@nvidia.com>, Damien Le Moal <damien.lemoal@wdc.com>, Ming Lei <ming.lei@redhat.com>, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, dm-devel@redhat.com, Song Liu <song@kernel.org>, linux-raid@vger.kernel.org, Mike Snitzer <snitzer@kernel.org>, Matthew Wilcox <willy@infradead.org>, Dave Kleikamp <shaggy@kernel.org>, jfs-discussion@lists.sourceforge.net, cluster-devel@redhat.com, Bob Peterson <rpeterso@redhat.com>, Andreas Gruenbacher <agruenba@redhat.com>, David Sterba <dsterba@suse.com>, linux-btrfs@vger.kernel.org, Johannes Thumshirn <johannes.thumshirn@wdc.com> Subject: [PATCH 19/19] block: mark bio_add_page as __must_check Date: Wed, 29 Mar 2023 10:06:05 -0700 Message-Id: <350bd9c62ce575267a2b38625ab767c332429bc1.1680108414.git.johannes.thumshirn@wdc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <cover.1680108414.git.johannes.thumshirn@wdc.com> References: <cover.1680108414.git.johannes.thumshirn@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 0B4861C0027 X-Stat-Signature: onyfqmzk8obza6cbi3wmsfpnwjj4f9qd X-Rspam-User: X-HE-Tag: 1680109635-219555 X-HE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lztAUgvr96ksShn9rTy0PTkyyA8ESH6HaMrclvVzQEpuNwIk9/Qw85PvCKB9K/qtravgCl15ZB7XIzuz4s5eOB+9uY0FbEyVFhjAmrkC0x1PprvFHh+wpj08AqtvRfWuqUeaeeUmQUIeDENVZwOhMYGCK73xjrSnTAiIgF+GHfgcYyCP3BL0mDOqAXctN/BnFSTXY2CUFnT4L+VnIGvbeIeAz6H8YKMrhKt982eOKy7r4nPyIwRHZrnPn7tQz3jgg1+/e8CdYmJyLSEfaHjsHxHqTdrdJ6Zs7sWG8IQ8hoC5WD30mAA36dDY+9ISyB X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
bio: check return values of bio_add_page
|
expand
|
On 3/30/23 02:06, Johannes Thumshirn wrote: > Now that all users of bio_add_page check for the return value, mark > bio_add_page as __must_check. > > Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
diff --git a/include/linux/bio.h b/include/linux/bio.h index d766be7152e1..0f8a8d7a6384 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -465,7 +465,7 @@ extern void bio_uninit(struct bio *); void bio_reset(struct bio *bio, struct block_device *bdev, blk_opf_t opf); void bio_chain(struct bio *, struct bio *); -int bio_add_page(struct bio *, struct page *, unsigned len, unsigned off); +int __must_check bio_add_page(struct bio *, struct page *, unsigned len, unsigned off); bool bio_add_folio(struct bio *, struct folio *, size_t len, size_t off); extern int bio_add_pc_page(struct request_queue *, struct bio *, struct page *, unsigned int, unsigned int);
Now that all users of bio_add_page check for the return value, mark bio_add_page as __must_check. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> --- include/linux/bio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)