summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2018-02-25 10:32:26 +0000
committerhselasky <hselasky@FreeBSD.org>2018-02-25 10:32:26 +0000
commite07d17e2bcff2bec4cceca484c025767d7bf520f (patch)
tree7f5b7ea34a5caf82ac1d2ea896a6583d52ffc597
parentdf1e3738395eb202a2257affc9074284c1638494 (diff)
downloadFreeBSD-src-e07d17e2bcff2bec4cceca484c025767d7bf520f.zip
FreeBSD-src-e07d17e2bcff2bec4cceca484c025767d7bf520f.tar.gz
MFC r329512:
Implement __list_del_entry() helper functions in the LinuxKPI. Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
-rw-r--r--sys/compat/linuxkpi/common/include/linux/list.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
index c235c26..311a6ad 100644
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -117,6 +117,13 @@ __list_del(struct list_head *prev, struct list_head *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)
{
OpenPOWER on IntegriCloud