- list_islast-utility.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     list_is_last utility

has been removed from the -mm tree.  Its filename is

     list_islast-utility.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: list_is_last utility
From: Shailabh Nagar <nagar@xxxxxxxxxxxxxx>

Add another list utility function to check for last element in a list.

Signed-off-by: Shailabh Nagar <nagar@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/list.h |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff -puN include/linux/list.h~list_islast-utility include/linux/list.h
--- a/include/linux/list.h~list_islast-utility
+++ a/include/linux/list.h
@@ -265,6 +265,17 @@ static inline void list_move_tail(struct
 }
 
 /**
+ * list_is_last - tests whether @list is the last entry in list @head
+ * @list: the entry to test
+ * @head: the head of the list
+ */
+static inline int list_is_last(const struct list_head *list,
+				const struct list_head *head)
+{
+	return list->next == head;
+}
+
+/**
  * list_empty - tests whether a list is empty
  * @head: the list to test.
  */
_

Patches currently in -mm which might be from nagar@xxxxxxxxxxxxxx are

list_islast-utility.patch
netlink-improve-string-attribute-validation.patch
task-watchers-register-per-task-delay-accounting.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux