Date: Sat, 5 Mar 2022 11:34:16 GMT From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 48df337c9e65 - stable/13 - linuxkpi: Add list_rotate_to_front Message-ID: <202203051134.225BYG86046521@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=48df337c9e657b76826f78964033f057490fd750 commit 48df337c9e657b76826f78964033f057490fd750 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-02-11 15:10:08 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-03-05 11:12:43 +0000 linuxkpi: Add list_rotate_to_front This just calls list_move_tail. Reviewed by: hselasky, bz Sponsored by: Beckhoff Automation GmbH & Co. KG MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D34251 (cherry picked from commit bf7deecfe7604c394d0c89ca58ce5d22b0d5641c) --- 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 eee1b56087e7..80ac57fecf6d 100644 --- a/sys/compat/linuxkpi/common/include/linux/list.h +++ b/sys/compat/linuxkpi/common/include/linux/list.h @@ -269,6 +269,13 @@ list_move_tail(struct list_head *entry, struct list_head *head) list_add_tail(entry, head); } +static inline void +list_rotate_to_front(struct list_head *entry, struct list_head *head) +{ + + list_move_tail(entry, head); +} + static inline void list_bulk_move_tail(struct list_head *head, struct list_head *first, struct list_head *last)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203051134.225BYG86046521>