From patchwork Thu Oct 17 13:46:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13840067 Return-Path: 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 C1527D37491 for ; Thu, 17 Oct 2024 13:46:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 941796B0083; Thu, 17 Oct 2024 09:46:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 91AE96B0089; Thu, 17 Oct 2024 09:46:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7B7F36B008A; Thu, 17 Oct 2024 09:46:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 55F956B0083 for ; Thu, 17 Oct 2024 09:46:30 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 7E35241427 for ; Thu, 17 Oct 2024 13:46:23 +0000 (UTC) X-FDA: 82683218520.08.2E7632B Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by imf28.hostedemail.com (Postfix) with ESMTP id 8AF3DC0009 for ; Thu, 17 Oct 2024 13:46:18 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LNOt+l3p; spf=pass (imf28.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729172642; 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=vDv4Bp09gC9DZzAkjA26gXKku/6wi5oKcWSb8e8kMzM=; b=f1115a+yhe+OY0fH/AD6Wzg0Gj2HjpNBo2p+Laj0SJq4DmSZWw0DSEJt+rnM+1MbWK+vU+ aLKMKxRPJ0bqCRVFu1p1KYG5S7CFC3oFfMsX15UypZeeDxQTS+x1eoIIEad2rQrfxndHaq P8wSGOZgWwzNBYuEE5+lj1ZPhZtVP7U= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729172642; a=rsa-sha256; cv=none; b=eUFykaLaTxYTvn+/46d+rwOCSGDzRpOf/jiFeHntI6IVBx16FWm0Yp2wk7mkXIUt/9IW2J nkEJEyf8oZk+H89ZQ7DP0Rssb4EylcGBwRaVUTcdSZ6nBBRUx/JJxdPSXUzTF2GxhQpHvQ iBQ55x8dZsyr794r/g6gomhQVn+acX0= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=LNOt+l3p; spf=pass (imf28.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.48 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a9a0472306cso126793866b.3 for ; Thu, 17 Oct 2024 06:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729172787; x=1729777587; 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=vDv4Bp09gC9DZzAkjA26gXKku/6wi5oKcWSb8e8kMzM=; b=LNOt+l3pIlmds4Paqc1zHbVadlNcF1xKP3iFuwK2kK3ntXY2l0e1pHnrLSXop3+7hE o9nn1rL1gn75MPmJSidlhzblWm7NJjAE8OoJiVhPPWCs7DhFRMyJW6q6meCj5vJwSD+m SZ0S1z5BfE4nlnuPjLNbDvDz1z+08ku7VVO84IYGatv/kS6JkfXHuxzg8FX9qn3NDlCy TQxp3hsTr2fe7ZVs4i6AeQHFHjOB6hMuXTUCzryarXfFI8Qe3fsyCbgoZx9tuA+Ta3s9 0uF3Dl3wHs9EJ1TIZB5LIDu3xRjmz9JE7IdxpIXqANMSfw2w0ElJwKckrRT1JpEeHIt+ mCSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729172787; x=1729777587; 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=vDv4Bp09gC9DZzAkjA26gXKku/6wi5oKcWSb8e8kMzM=; b=gsAQLdTRzBcW8e366NX8rM/ky/ZeNUy6KThoJZi95ySViU5TVeGsY1kk9gyFwOJH6t MJ2nwxZ3hhWtWdmu192Gj3EzZI9AvjJwdlyE+6Mj97la3gCsnrb1dn6lq2fpW/Dcuqsu SkS/u3l1CVChAAksQZKFSZOLxlxIT65WZ/sW6TKx59pN0CssOiPvWF7LW+33xuKFAY5U Bt3vSIi62MqmJ6d27FxB9uMvNFLz1ejSFzwo079TbI+fOVPImIljugPH1ayWvygHosI3 YPX+0ME0wogTSX0sDO52EahiPn6/Sp23o9H/YY72CrJ0J0sDr3anT92cFEMHPy4UTqKw eWHQ== X-Forwarded-Encrypted: i=1; AJvYcCVg7NmIchTFNimaHS0Lz06q+7KjnRgE3HzFF6+0WtECL5We+H91rrOHnVBubRRMgCzHiJ+5ZGELow==@kvack.org X-Gm-Message-State: AOJu0YzArg5zGePzAGHL4qwP0S06YRo5LoKdP9Lgck8b1n0j/m2XyMLW +duAlv1wi7S2fHY3wadoO32GWUK/jf/lsp3GsU1xYAnjjtoJKpqu X-Google-Smtp-Source: AGHT+IGd78M11A97v4Y51/Hr2Lad5cs1I+/j8mxj/Eng8BkFzHDhvSn10U/UeLtIQ+JfNq8AsJ8xvQ== X-Received: by 2002:a17:907:1c2a:b0:a9a:13c2:2b07 with SMTP id a640c23a62f3a-a9a13c2368bmr1211329166b.31.1729172786678; Thu, 17 Oct 2024 06:46:26 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a29823d5esm299349766b.113.2024.10.17.06.46.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2024 06:46:25 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, Liam.Howlett@oracle.com Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang , "Liam R . Howlett" , Sidhartha Kumar , Lorenzo Stoakes Subject: [PATCH v2 2/5] maple_tree: the return value of mas_root_expand() is not used Date: Thu, 17 Oct 2024 13:46:04 +0000 Message-Id: <20241017134607.30206-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20241017134607.30206-1-richard.weiyang@gmail.com> References: <20241017134607.30206-1-richard.weiyang@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 8AF3DC0009 X-Stat-Signature: dan1tca5xyz55opwa7cs9b1u7rehbq4t X-HE-Tag: 1729172778-403773 X-HE-Meta: U2FsdGVkX1+DcyWN6WdAesDXEFfEc/oJgSQzIQ2H55znCpYMj+ujaYJdKtEVKyXgRXIUxhfPXaZjTzUsWc3u35po8t9ujlk94paTYH95zKcs1IlecBKVLUTIA/spY0DWhXJcYnCeYI1CA/ycF/bUDXRnF4fNUzyDR6D0GtE3sIMEjxXtouinKI6UfI7lS/oURU/k0m/wjMUNbz16s8EVFvxsclWQPUBuksv2rxnMzrqUvacyGWwXLCxvDyVNrtqc7FAvxBl62adXmgZm0TavmDSGQ/w0q4OMrT9yCUJ1a96UE4202Wm3hfxyNYIVHJpicbu9BnUcvk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3KQYpLK8w51ngu1RhvzmiIlGc1LFZllBR5tzd1UmiMqbUom42loLUk43m7n/9H+HbIIKNLfI3Mfts+rAVbSsCM6PUZxKHrMRVlXXzftLEylqSSqMZaYgAzMJ1NptNCN39cRGAJ/zd/ 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: List-Subscribe: List-Unsubscribe: No user of the return value now, just remove it. Signed-off-by: Wei Yang CC: Liam R. Howlett CC: Sidhartha Kumar CC: Lorenzo Stoakes --- lib/maple_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 63a969d581f2..ff9d972dba4d 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3326,7 +3326,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; @@ -3362,7 +3362,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)