From 15052dc8610030cc477852c271e5ebb02e9aea3e Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Sun, 18 Feb 2018 08:47:15 +0000 Subject: [PATCH] Implement __list_del_entry() helper functions in the LinuxKPI. MFC after: 1 week Submitted by: Johannes Lundberg Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks --- sys/compat/linuxkpi/common/include/linux/list.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h index c235c2692461..311a6ad25d49 100644 --- a/sys/compat/linuxkpi/common/include/linux/list.h +++ b/sys/compat/linuxkpi/common/include/linux/list.h @@ -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) {