Message ID | 20241018023943.13860-3-richard.weiyang@gmail.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 1A4D7D3C544 for <linux-mm@archiver.kernel.org>; Fri, 18 Oct 2024 02:40:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 707936B0089; Thu, 17 Oct 2024 22:40:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6B7A76B008A; Thu, 17 Oct 2024 22:40:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 559206B008C; Thu, 17 Oct 2024 22:40:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 35D866B0089 for <linux-mm@kvack.org>; Thu, 17 Oct 2024 22:40:06 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id D3A8A1404B3 for <linux-mm@kvack.org>; Fri, 18 Oct 2024 02:39:53 +0000 (UTC) X-FDA: 82685168160.16.8D9295B Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) by imf01.hostedemail.com (Postfix) with ESMTP id 581FC40010 for <linux-mm@kvack.org>; Fri, 18 Oct 2024 02:39:55 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=hud2oBI7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf01.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.45 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729219043; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=Fw9lqVXH780eA2Co076ZCgivnQTo3zO1jHl7+cZ/sZI=; b=fiT2CS5PLDr15Zxb0gqK9wA/E8f85byDMU9zgajSCUZ5Op/YHtBrbQFtKV361zKIKV2GAm J1ZLCsKLkob47QGfkusJyyvTGKPkpK+Pj0abPU1WP9tMWBZGfQPYn46/aK6IGQrp2GfssO 4+ds3nZjc3Ew550cz+QJhlnuu0T4FOw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729219043; a=rsa-sha256; cv=none; b=wIOcRrwNkgNqiRgJBFF6Gz5pcWhiFWZPzwDNo0c9eHTWDrO7M1ENHosn9u9qifG69cfMWK u2aCqVAxl/bemOo3XE7T9mah3A9TzbSGriyxc0sI9BfGDj4lgRgG2AUWHcNS1EvPH9AGRM YWh/XilRskLOBXTrZBVKOC+mP9skiPc= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=hud2oBI7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf01.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.45 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5c9404c0d50so1655502a12.3 for <linux-mm@kvack.org>; Thu, 17 Oct 2024 19:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729219202; x=1729824002; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=Fw9lqVXH780eA2Co076ZCgivnQTo3zO1jHl7+cZ/sZI=; b=hud2oBI7g7YQuDCYukuKEA5TvQLASsoRdRp6mbcqazKih/VtMasdCUaOfUi2M3QGxl GMnX6SiOqIgRz5sOZ9w1QK+TKlot7IcbJMj/KKCx9weGnokmUy7TPDb5hnh6iyQ96ea7 YwV9homAkIg0DzQt/xr7LXFaxuECz1e0zoYlQGa0a9aA5gcf/PQYrf7s0C306AJK2GV/ 3IL8ZiTbfhd2YrztbHLKUW7Ks/34b9E7lcaN0frr79n1tXiT4GDDv1QFBPqPHYE4GnhL rUSlYkDGaxGqHOOvWG4MGbe27wqvWJq2+Nx5BAf/g38SvkRWfaoRK+XsK3mm8MSr9FiP mTgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729219202; x=1729824002; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fw9lqVXH780eA2Co076ZCgivnQTo3zO1jHl7+cZ/sZI=; b=eJ44HdDkAMiq/17JgKai+DgRmC+gtI7GmORxzkigEZ1wMHMUAk86lzk1N47OGsvHms j4UkvNmafLezlNhKLP+zQjQMCR/8sn7Mjp2vlkToeiSEFtr5+AX+dgg39nIA4wc1w4a9 hK+UNCLBsIrcOCXEwR1uXPEnF9cGAJ1K5rekG0by21qA9O6s77RIjJknhVt0eSG9zBFp CHlOM56sl9KW9/k9hyb9XNLUI2BS7olY27o15vA7JlFrwWSJfBypKg+37w0wRI4XkEI4 4RbHT/Pglcabxv3rngYkcThWD6IgTTmSYbujNGIeSqQpL4D0x3s4qz+OFjBuW7uQ3/im WXjg== X-Forwarded-Encrypted: i=1; AJvYcCViTlMuOrMS58D8obMRc6Tsewe4Wk2Tm8kxcQSE+WeUWpWiFG+T5YaJLKT1EKuLBwMeRWOg1Jh3Pw==@kvack.org X-Gm-Message-State: AOJu0YyTX57u0Wb5bN2c6V3RnK1R9orZSfkRA3plvV5uNuGTOQsHwzzj tVvrgcUc2Z1Y4waK5lSpn82j7Cn6ZTUyZaSRCorTZAxjXVEKe9GRLTdFgFNs X-Google-Smtp-Source: AGHT+IF7WQgNCpDlc/Z1MTitBjpfCpDeX9DX6IieD0NYIuwav77JJR4eRjNHDR+bEQoAs583h39Nmg== X-Received: by 2002:a17:907:94c8:b0:a99:fb75:3ed7 with SMTP id a640c23a62f3a-a9a69a69349mr48963866b.17.1729219202384; Thu, 17 Oct 2024 19:40:02 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a68bf5f34sm33604766b.153.2024.10.17.19.39.59 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2024 19:40:00 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> To: Liam.Howlett@oracle.com, akpm@linux-foundation.org Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang <richard.weiyang@gmail.com>, "Liam R . Howlett" <Liam.Howlett@Oracle.com>, Sidhartha Kumar <sidhartha.kumar@oracle.com>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Subject: [PATCH v3 2/5] maple_tree: the return value of mas_root_expand() is not used Date: Fri, 18 Oct 2024 02:39:40 +0000 Message-Id: <20241018023943.13860-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20241018023943.13860-1-richard.weiyang@gmail.com> References: <20241018023943.13860-1-richard.weiyang@gmail.com> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 581FC40010 X-Stat-Signature: 7zmaxjoxuy4h1fjzg9s3mjcdt5swqmcd X-Rspam-User: X-HE-Tag: 1729219195-888108 X-HE-Meta: U2FsdGVkX19/1nztg1XrrM74TkDL+Hyo97apxGzE3mhGOwn9svvskFRwBjp2n8l0wHAKAX6CuF7ElmHBSTLQCUO0mftdwHSkjcT2oI0xc6/+iqe0dffeMzErT2ZkTme/ufzFJa4S+MUSz4mNKEbhekrfZDW1QyZKZ3p86Jivj+0hBDf3ZQ1TPP6GveaArg3nXI1cQx6wsyB2A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r5G1AATrP1k57fG+KzwXF3OsgVBldEG7bXVrNu2RD88sTRJIKghtm11w7IBMm3TFB9vNytT0Q40A0RpbLFmnYR4PC+LeudKxVBEifAMOf0z3lCJynRCU4NYIqhiomp39biQvX+of+nsSiLM3KUEecA8SdYwr/uxrTSpOuRsZ7AmJucsBUlRAhs8SfMKZ5YYBUE9cnHvjjSETuS7IGlrwWPRbvHWgeVczcFolT6ywhPC 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
refine storing NULL
|
expand
|
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index ec746aca2510..cbbaaf60efa9 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3398,7 +3398,7 @@ static noinline_for_kasan void mas_commit_b_node(struct ma_wr_state *wr_mas, * @mas: The maple state * @entry: The entry to store into the tree */ -static inline int mas_root_expand(struct ma_state *mas, void *entry) +static inline void mas_root_expand(struct ma_state *mas, void *entry) { void *contents = mas_root_locked(mas); enum maple_type type = maple_leaf_64; @@ -3434,7 +3434,7 @@ static inline int mas_root_expand(struct ma_state *mas, void *entry) ma_set_meta(node, maple_leaf_64, 0, slot); /* swap the new root into the tree */ rcu_assign_pointer(mas->tree->ma_root, mte_mk_root(mas->node)); - return slot; + return; } static inline void mas_store_root(struct ma_state *mas, void *entry)
No user of the return value now, just remove it. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Liam R. Howlett <Liam.Howlett@Oracle.com> CC: Sidhartha Kumar <sidhartha.kumar@oracle.com> CC: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> --- lib/maple_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)