Skip to contentSkip to conversation

list-leverage-list_is_head-for-list_entry_is_head.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Feb 22, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: list: leverage list_is_head() for list_entry_is_head()
has been removed from the -mm tree. Its filename was
list-leverage-list_is_head-for-list_entry_is_head.patch

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

------------------------------------------------------
From: Wei Yang <[email protected]>
Subject: list: leverage list_is_head() for list_entry_is_head()
Date: Thu, 8 Feb 2024 02:14:23 +0000

This is what list_is_head() exactly do.

---

 include/linux/list.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/list.h renamed from include/linux/list.h~list-leverage-list_is_head-for-list_entry_is_head +1 -1
@@ -766,7 +766,7 @@ static inline size_t list_count_nodes(st
  * @member:	the name of the list_head within the struct.
  */
 #define list_entry_is_head(pos, head, member)				\
-	(&pos->member == (head))
+	list_is_head(&pos->member, (head))
 
 /**
  * list_for_each_entry	-	iterate over list of given type

_

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