Message ID | 7b1df30b0db4cd34a3c9d66c9c126dccaf2eb52f.1685461490.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 C876EC77B73 for <linux-mm@archiver.kernel.org>; Tue, 30 May 2023 15:50:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 63725900007; Tue, 30 May 2023 11:50:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5E7AA900005; Tue, 30 May 2023 11:50:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4882D900017; Tue, 30 May 2023 11:50:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3A36F900005 for <linux-mm@kvack.org>; Tue, 30 May 2023 11:50:25 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 1A081C0284 for <linux-mm@kvack.org>; Tue, 30 May 2023 15:50:25 +0000 (UTC) X-FDA: 80847358410.19.347C0A0 Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by imf27.hostedemail.com (Postfix) with ESMTP id B23C140010 for <linux-mm@kvack.org>; Tue, 30 May 2023 15:50:22 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=KBTUT0PA; spf=pass (imf27.hostedemail.com: domain of "prvs=507b913ec=johannes.thumshirn@wdc.com" designates 216.71.153.144 as permitted sender) smtp.mailfrom="prvs=507b913ec=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=1685461822; 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=qfskpwS0Ujqesmx9nawoFccYGFRFHr2duV/SZprdJTg=; b=7kwUgSxh0NqeCcpxEP6aRQBMGysamGvh/9KT+/98HNxopO1jioV8Yzo5agEBnjltiMuqJt 1WAfM5F9mRzgq1NnVkOB+5v/p/H41NsEo1Ga/bXIJf8YReOa+szIcbko5WNrwwXKdux8+j v6cLYXTgTlaleTOv9t6m9wevrWuMxYc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685461822; a=rsa-sha256; cv=none; b=eym6xXQ40UqP8sU5/akjNHmTD9CVCHYhmVV7SowdajV4Yj+2FqwZPC5fyokrJEHSr6Jd5S gKCcDkowVRsUX7Q8aK88vWfdAatQ3ydEERwv6LKTe8XBRD4vmzmZ4pkR8VQ4DGg4knyIYU Tt8eXS1HwM6xwim1AhST9pZ8VVqt9eI= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=KBTUT0PA; spf=pass (imf27.hostedemail.com: domain of "prvs=507b913ec=johannes.thumshirn@wdc.com" designates 216.71.153.144 as permitted sender) smtp.mailfrom="prvs=507b913ec=johannes.thumshirn@wdc.com"; dmarc=pass (policy=quarantine) header.from=wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1685461822; x=1716997822; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8KwDx4F6OBY0YkNe6TbB7WM/40haMFuwXNEas5IG6CQ=; b=KBTUT0PANq+YrqjoDqUZC95OIzP8CRi3cnoctS7GlafUzXOVKDFudvvN X23XUpWrSslJs8LK6FiZC70L8FO1eHy76zy2qIdkquBrFPzC2GmELCExb h1GHo8Ytbxsdps1kFitUb+glsYcdbM0jRGp+9xw8kE4SnQTUB7oE9XDfN 0HDyvb2qltjOxcRRqT9e9u4ALaNZop/RqXEH38JbMZg9q3pypsAA7SMyL Pb97eoq6Q1+ftnPI1EDO4T4C1gS8KIpYEHvmcSCO39amblxOfD0fgzWqP i7tHU6oCXtBERy2OyOBo6Dehhnqyyr7l+9y3C19PuE25Yx5qQYyFZQ8Y6 A==; X-IronPort-AV: E=Sophos;i="6.00,204,1681142400"; d="scan'208";a="231905777" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 30 May 2023 23:50:21 +0800 IronPort-SDR: ZAWisUWDLaoNreY2x6CjdBjgma7yVTB8vH7LHPv5vbV44ch7rxvcOM8YYQfr5TjPTV0isI2xiL Kk+Q/uTgW8JUjYn6NRGltCr7qnP01uYAdP0Twxdd/FsOHTX2Nb1k36GUG4klpltFyDwszq+9VB NtZiGiMGhgRUp4O7Zum9YE8a2yepZN/oSzs8XVLvytU6WIU8zIVnXVS4c8d/Xjk3ietbK6IvLQ 5HB5wRj+C2zojTWfOTe13wAuETombiRxr3RubHH+mp5rGgTkxnYUUy+NZEnw44TjcszGFiIz1O Fyc= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 May 2023 07:59:33 -0700 IronPort-SDR: eRxexFOpgVAiI/6qc3M2HlLMqG5hyprbnE2P5xkzi3wCU7bzC6rmbI3U41KClPzQrimk3nomV8 vOG7AELmgo3HFPJEeyzLWnnwIz34HEVY8liiQQjfWPND8wASjp6PauRIZ4LoQjvCc69Za4Fbl6 m+vZp4/ReRXC7hP9oNIBNf52TfQ/tdnag2K72W9yus3jFs/hvE58IgRrdFN52PYehAVf60iVrp tQueGHSyM+3hE4aPseYmzkNOHWMUssVoGCGrDEwV68pXp9pAvW+foUD6P2gQQwUQv2prEnyRo8 O5Y= WDCIronportException: Internal Received: from unknown (HELO redsun91.ssa.fujisawa.hgst.com) ([10.149.66.6]) by uls-op-cesaip02.wdc.com with ESMTP; 30 May 2023 08:50:18 -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>, Mikulas Patocka <mpatocka@redhat.com>, gouhao@uniontech.com, Johannes Thumshirn <johannes.thumshirn@wdc.com>, Damien Le Moal <damien.lemoal@opensource.wdc.com> Subject: [PATCH v6 17/20] block: mark bio_add_page as __must_check Date: Tue, 30 May 2023 08:49:20 -0700 Message-Id: <7b1df30b0db4cd34a3c9d66c9c126dccaf2eb52f.1685461490.git.johannes.thumshirn@wdc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1685461490.git.johannes.thumshirn@wdc.com> References: <cover.1685461490.git.johannes.thumshirn@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B23C140010 X-Rspam-User: X-Stat-Signature: ax3ngy3swo871b59ry6kgo534f5uq8sx X-Rspamd-Server: rspam03 X-HE-Tag: 1685461822-3962 X-HE-Meta: U2FsdGVkX1+Pc1+8vfBkAA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qW6GMRTUb6Uda6krvESmGj+dMd9MHs5kNIZAwXgUsUqFm10lyvcnFCymc1bgie4BU4F972Y/ol4ljxJN5DUFMKfpgBRQ2jf5dt0d1EfbpxR85B5ZtaQDdnFrwIIGp5ky2aMhXH9LfSTOYaTQ9GK4Di3iDWzcmQCjgaQENlgwX4GI6vkRKKr4bT+Uqnz6iaOgjqNoG22p3KiEk68U5qVTBGmpULEhuLkeP2/YLA5ViUuyrfTDRO5AOaVr9BhbAb3OOlzdsWJMFx5wSGWAmnRiHA== 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
|
> +int __must_check bio_add_page(struct bio *, struct page *, unsigned len, unsigned off);
Please spell out all parameters while you touch this, and also avoid the
overly long line.
diff --git a/include/linux/bio.h b/include/linux/bio.h index b3e7529ff55e..5d5b081ee062 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);