Implement __list_del_entry() helper functions in the LinuxKPI.

MFC after:	1 week
Submitted by:	Johannes Lundberg <johalun0@gmail.com>
Sponsored by:	Mellanox Technologies
Sponsored by:	Limelight Networks
This commit is contained in:
Hans Petter Selasky 2018-02-18 08:47:15 +00:00
parent d51be3591a
commit 15052dc861
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329512

View File

@ -116,6 +116,13 @@ __list_del(struct list_head *prev, struct list_head *next)
WRITE_ONCE(prev->next, next);
}
static inline void
__list_del_entry(struct list_head *entry)
{
__list_del(entry->prev, entry->next);
}
static inline void
list_del(struct list_head *entry)
{