Skip to contentSkip to conversation

list-test-check-the-size-of-every-lists-for-list_cut_position.patch removed from -mm tree

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

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: list: test: check the size of every lists for list_cut_position*()
has been removed from the -mm tree. Its filename was
list-test-check-the-size-of-every-lists-for-list_cut_position.patch

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

------------------------------------------------------
From: I Hsin Cheng <[email protected]>
Subject: list: test: check the size of every lists for list_cut_position*()
Date: Tue, 8 Oct 2024 14:52:53 +0800

Check the total number of elements in both resultant lists are correct within list_cut_position*(). Previously, only the first list's size was checked. so additional elements in the second list would not have been caught.

---

 lib/list-test.c |    4 ++++
 1 file changed, 4 insertions(+)
lib/list-test.c renamed from lib/list-test.c~list-test-check-the-size-of-every-lists-for-list_cut_position +4 -0
@@ -412,6 +412,8 @@ static void list_test_list_cut_position(
 		KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]);
 		i++;
 	}
+
+	KUNIT_EXPECT_EQ(test, i, 3);
 }
 
 static void list_test_list_cut_before(struct kunit *test)
@@ -440,6 +442,8 @@ static void list_test_list_cut_before(st
 		KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]);
 		i++;
 	}
+
+	KUNIT_EXPECT_EQ(test, i, 3);
 }
 
 static void list_test_list_splice(struct kunit *test)

_

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