From patchwork Sat Oct 19 02:37:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13842541 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 CA3F9D3E1AC for ; Sat, 19 Oct 2024 02:37:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5080A6B00A0; Fri, 18 Oct 2024 22:37:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 48F236B00A2; Fri, 18 Oct 2024 22:37:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E1E66B00A3; Fri, 18 Oct 2024 22:37:34 -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 099226B00A0 for ; Fri, 18 Oct 2024 22:37:34 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 86C331405E1 for ; Sat, 19 Oct 2024 02:37:20 +0000 (UTC) X-FDA: 82688790660.29.C56A85C Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by imf09.hostedemail.com (Postfix) with ESMTP id 675D5140002 for ; Sat, 19 Oct 2024 02:37:23 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZNuk1reE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf09.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.52 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=1729305290; 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=QXW4zdNeCQqVZrqhFgxaQp0ar/9tkoSK5Km9ybE7Vp8=; b=DHW1w5BBYsDmtTpOrD0pCq13pZxXSA4bXHdubWF6BSn37owisqCb+kcfJuDTjqVanox3oq d6DEQ0VUybO63hrpMQP5Dp7dgRyui0llF+PTP1hKNqailbz1u0lxqsSYl9meqYn0EBq4gh Iz438FVeJH1hrtJKwEB23wxdFVbm/U4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729305290; a=rsa-sha256; cv=none; b=QCwF/GD0Z4rye3s1Dj343q13+tdqJhRDC5v+ZHbX46jv2KWWoiCFPz9FqA8ifzE1qZ4dNc ZGH/TmljlFA3EmlEM7+IJRwyrs28lqKC3meY+EhpAD3C8tmFmC2dJfSE7HMelXpkvA9eps NRj4tG6QdMkZ1jEgufaV5vPylKsdwog= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=ZNuk1reE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf09.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.218.52 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a99ebb390a5so708042366b.1 for ; Fri, 18 Oct 2024 19:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729305450; x=1729910250; 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=QXW4zdNeCQqVZrqhFgxaQp0ar/9tkoSK5Km9ybE7Vp8=; b=ZNuk1reE75kAonjr1K0z0T8cy0+DJZyO3t4DEZB27VjUmkRZE5+l6HNsNWU7D3uvvq mD0DcNe4x5Qi0WKpW+UzC3ElKYtQPHiD6YxhO7dTQ6/d5vzJ+vd+RgR5tS0ssSud6y8B ra/6oMZaRZv8GBZR+ps3i7y9KpfnT+++JlHcuKXNOWQqwpWWnHDA9zXJoabBOVyBlin7 eDnTbINcNxxNZFYvfuS/mKQq/fGgJPWtMeUMxITb/Jdc4sFb1rdC+h1iR4Y0sxjGJOQB P/DvisL9ssRZdljZKgdSNK0Eyvm1V6egk6N/e+sv2XSQyy7wLwX11U4vFN/ItSJ0/wMB 9SsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729305450; x=1729910250; 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=QXW4zdNeCQqVZrqhFgxaQp0ar/9tkoSK5Km9ybE7Vp8=; b=rIvLhzk27HZkyvBBuXMseV3Ib540C4BKn8FVsqXvZiPtwGlqwDIcNFhQBjj33x/Gr/ ZBfbWLU+or4Z2muLmNU0CJ8wkO9En6geIV7RkA+hy9OAau5kIQ8p91uuKGSiF3l0wjyb eaV4Pw069JyELyjgSB9L4ioEx2GkE3wENmxGm2St/HwCr2qKTiuEeKdg0rQnKNqK7ZyL 8X2s8PZFR2QNgFUKdRhlo7hB4R5fUp/uQ1UNEyIIQVMzl6oVOt28eY2QVPEwMdOcQeN6 gmqKq4098R3KBncn3DMVFeQVDSRAmWvoAvpN3ie+D1PbtVPkTKmD9CJoQC7J2QUYsD69 M5Mg== X-Forwarded-Encrypted: i=1; AJvYcCUTGyqc2S4o5tITvvic/lLkZ8vFV0yVMbQ/LIbWzs3l6h7aERY6zKw6pWD3J5Wey/o+kgLlFN505w==@kvack.org X-Gm-Message-State: AOJu0Yz2bp4kftbmGox0mW5gHeFCHCcdqmXrk8ahw6yuAYB9jOmgaKgq BjBVT2dq8i76gSkiOfnx+dEz5K5lDMlB+YdusN6ueN6vf+uVfa/Y X-Google-Smtp-Source: AGHT+IG1Yl/u26kPrLwEn4ZhGOoteYtKwImuuVOFXyePhWmUwZ0+zlvqW8Tbu/eGyNpRA7mcb1zcPw== X-Received: by 2002:a17:906:730b:b0:a99:d587:6046 with SMTP id a640c23a62f3a-a9a4cc58f60mr752923466b.32.1729305450348; Fri, 18 Oct 2024 19:37:30 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a68ad4e0asm160303166b.53.2024.10.18.19.37.27 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Oct 2024 19:37:28 -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 v4 2/5] maple_tree: the return value of mas_root_expand() is not used Date: Sat, 19 Oct 2024 02:37:13 +0000 Message-Id: <20241019023716.4516-3-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20241019023716.4516-1-richard.weiyang@gmail.com> References: <20241019023716.4516-1-richard.weiyang@gmail.com> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 675D5140002 X-Stat-Signature: drrrpfojqt7wac7srg8879fdi45y1zqj X-Rspam-User: X-HE-Tag: 1729305443-880209 X-HE-Meta: U2FsdGVkX1/jQnv93uCRSSvv9BZoWHGgtlAyuKfdSnz/k7fOhh32gKqyA4CIAQVUtRpJj3bpjIn1tRPfRZwz7/KnEPQWzeGzn6Leb3R2WT4LOhSOVxsilzSgvHZI5M0Fn0t1VtNEUFL3RWx7/lBxB2+PzomeXg2UCzCo+Fcv4wa5lV3Nv6KHxM17OfF2kCcfgFHdteWNZAGw7ots0bBLgh3Tr0SRltI7DN7RkgmROctTZ9W5G3HVn+f1M6wjZz3NV1WkLhRTZRIaQNMqh7dfdE1j/IL+bue0AOmWzlTwPccNQz3u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csra940BUr9vs5bfqw7qkR+5QfBu/e5lbBUJCXkL0rDcShHHFMN4yhM/Txq4QPwXPZ5e7qNzg/xeIMLCUTAbstRYLx/bbOw1BdmfbWWnb+qZ7xAfej53kVyjhUwd9vV/carQZu2dgmgpkm3CZx X-Bogosity: Ham, tests=bogofilter, spamicity=0.000004, 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 21e6895b7aef..517ddf2950e6 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3400,7 +3400,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; @@ -3436,7 +3436,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)