From patchwork Thu Oct 31 23:16:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13858436 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 36A05E6748F for ; Thu, 31 Oct 2024 23:16:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A94E76B0099; Thu, 31 Oct 2024 19:16:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A1DB16B009A; Thu, 31 Oct 2024 19:16:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 86FBD6B009B; Thu, 31 Oct 2024 19:16:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 66B9E6B0099 for ; Thu, 31 Oct 2024 19:16:58 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C976BC1A17 for ; Thu, 31 Oct 2024 23:16:57 +0000 (UTC) X-FDA: 82735459170.04.89E1427 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by imf23.hostedemail.com (Postfix) with ESMTP id 1B435140010 for ; Thu, 31 Oct 2024 23:16:37 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="QfoS6/2i"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf23.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 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=1730416535; 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=PfcQibdN0gqKBuNuHAxsEL4fK669tNNDHj7Em8iN560=; b=Pl24TF9Flvt0LXT7qebZuGuWNgiFuET+VxuB6BEwEH6BoPdcEve5Xil3V7FEIeAHSflJt/ J9grhcGWtwufHLJaTdN0EDWItvytPtM176FoS1TVWTnLNt4Imc5lHKpQQXwtZOLCxanade ddm4OtEhTmaVqgrG3Jch6NZDLwXXoJQ= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="QfoS6/2i"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf23.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.54 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730416535; a=rsa-sha256; cv=none; b=tXgfBu34OLrD17sTi63fTk+d91PSdBp4t1AXBgtRHiYm5E95QGieLMW8tGhbyEpbRsPSH/ KYNIFw9XTUGNDkTcwxGKuZ8KITJTztp3xuRkQiHhljEmBAKsLKKQEc/kDYmFyhwqAMra1d 0q1VdFcOmanYiUTOQomHa+6qb0ibjO4= Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a9a68480164so197124266b.3 for ; Thu, 31 Oct 2024 16:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730416614; x=1731021414; 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=PfcQibdN0gqKBuNuHAxsEL4fK669tNNDHj7Em8iN560=; b=QfoS6/2iZwvU0pwD2mziIlqkap34JxcUKwMEuPp+VV6DThS/9UrkkALM2oGzYR6hGb bIJsPvPyor5nrEOF2eu6JN0U2XCGvF8GyoyRo5HJ34z3qjJm9vhGbqVSudUvFNtalCsh fSBfpUcdplC/kv3XdouJ6YWHFAtXVAqwfHqH3LorfnERUXyfkqck8KPK6So/k/GSEazp bdpwkHTklp4hA+wdseUoiv94Ryop4ZojV8WwPahjt4jKMa7IBgoCfXVTLGVmOTfxyF/M l6Lg9rwxhrjs6rRIBW2hXm1sMTLa5N3Dq2A2CFg+alOcM/L6hzBAncK/QCkGm75HZyUE MgTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730416614; x=1731021414; 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=PfcQibdN0gqKBuNuHAxsEL4fK669tNNDHj7Em8iN560=; b=oNpa0Ph46X28EgXznrD6II/tKV09CedyQdHanh4qD/xhzo8j2YH2tqUFarzM9Cqrv2 zdNnXct6x9qaeOcY962torLjzZTp7NqxP7Mlb48tiIkQSMq7qTSjrbiCO4ZAsx0kLYmd ppRoFmkOmNLFQCMqJWOqEAwTIFGVNMSHoxIet53NNPoai9oQajgHhfkQ4nHHvjjy2Nif Ztn8FbGlgcJdJfQS2m/VTJNpyDcCOyZpmLGRoseTMips1qz1vKItFSVroxXuOML/ziFe nRs6bz8HolfMcrM+Xw5YIeeaUktWGJamsKUrJGFYb+JlC04Y1Kcf1cgMe0O16Bf/uVqQ qIoQ== X-Forwarded-Encrypted: i=1; AJvYcCW4givfegJTWl5OIykogWux5LdKerD7zdwxD0PeU+dDeKscnskCEeKagz/dvYz2QZyrccIot7FKVQ==@kvack.org X-Gm-Message-State: AOJu0YxwVhsHvQFwXXR1P9wLDNhEsj+RwE8j9ZCJrqRQzvUSkDHYhlI3 Inl0Jvf8DC6Hv1oOjYWcrXyHYX9CbQXApyKVFI0PjxQMSMfGI4TS X-Google-Smtp-Source: AGHT+IEGjC6Ry7TP2qxzVByBxXRbzE5PIaQkwQZ585pLYrsxJFc5JDMnz8Pmo0J8uk9jR782pIUWfQ== X-Received: by 2002:a17:907:9723:b0:a9a:5b78:cddc with SMTP id a640c23a62f3a-a9de61bba35mr2284479166b.64.1730416614395; Thu, 31 Oct 2024 16:16:54 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9e564940c5sm116906766b.16.2024.10.31.16.16.52 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Oct 2024 16:16:53 -0700 (PDT) From: Wei Yang To: Liam.Howlett@oracle.com, akpm@linux-foundation.org Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, Wei Yang , "Liam R . Howlett" , Sidhartha Kumar , Lorenzo Stoakes Subject: [PATCH v5 2/5] maple_tree: the return value of mas_root_expand() is not used Date: Thu, 31 Oct 2024 23:16:24 +0000 Message-Id: <20241031231627.14316-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20241031231627.14316-1-richard.weiyang@gmail.com> References: <20241031231627.14316-1-richard.weiyang@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 1B435140010 X-Stat-Signature: 4zoc1nz1agnpoejyo9uks16t5ob4um7x X-HE-Tag: 1730416597-830534 X-HE-Meta: U2FsdGVkX1+y9qkIsQ41ZHAMzss5pZBMdrH8ctbcqCGow8jBcVRo7xadgxh7cesA5Muo6nRTZKTz57n6Lbqu9tkeu8ILwI1hrmrFRAwcpE1Uc2UDVCbDFU1plqONykYPo1V0bYKan5N7eO+FNiXLmLt2Jg/7wa0jnH4z/RGrNSZ8AoIh+NTucadT0mLo60khX/vvZzJ1+XHqILz7CtTD9Z92DZdoHtKlJF8kRTfWG2Cizr/zuTix+cbrAprFefZl0/ooYsO63lBLeFZJlPZXQQfkcrMx63X3gbZZOTwSroax+dsRYD3PTGUjmpe38i2EWBkIM5/6wP+vk0ZmQWLePK87xk0NxtcDq7vQqgij8t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OXfkjmFnY89zyM+b2jAOnUaqsodnFLHAJDDBclZ8fWO01xUxaVDny8BY6Ub0Aop497GueT5U4ESMgZJfPPAKbfrH 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 Reviewed-by: Liam R. Howlett --- 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 523355fb2bbe..071d3055f1fa 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3408,7 +3408,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; @@ -3444,7 +3444,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)