Skip to contentSkip to conversation

maple_tree-the-return-value-of-mas_root_expand-is-not-used.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Nov 11, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: the return value of mas_root_expand() is not used
has been removed from the -mm tree. Its filename was
maple_tree-the-return-value-of-mas_root_expand-is-not-used.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: maple_tree: the return value of mas_root_expand() is not used
Date: Thu, 31 Oct 2024 23:16:24 +0000

No user of the return value now, just remove it.

---

 lib/maple_tree.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-the-return-value-of-mas_root_expand-is-not-used +2 -2
@@ -3408,7 +3408,7 @@ static noinline_for_kasan void mas_commi
  * @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_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)

_

Patches currently in -mm which might be from [email protected] are