git: c58ddc254626 - main - LinuxKPI: Rename linux_list_add to __list_add() in linux/list.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Dec 2023 08:23:19 UTC
The branch main has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=c58ddc25462699c0d13bf703adbed661bb102cac
commit c58ddc25462699c0d13bf703adbed661bb102cac
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2023-12-24 08:20:00 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2023-12-24 08:20:00 +0000
LinuxKPI: Rename linux_list_add to __list_add() in linux/list.h
to match Linux
Sponsored by: Serenity Cyber Security, LLC
Reviewed by: manu, bz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42818
---
sys/compat/linuxkpi/common/include/linux/list.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
index ca103a670109..eecb517d780e 100644
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -144,7 +144,7 @@ list_replace_init(struct list_head *old, struct list_head *new)
}
static inline void
-linux_list_add(struct list_head *new, struct list_head *prev,
+__list_add(struct list_head *new, struct list_head *prev,
struct list_head *next)
{
@@ -238,14 +238,14 @@ static inline void
list_add(struct list_head *new, struct list_head *head)
{
- linux_list_add(new, head, head->next);
+ __list_add(new, head, head->next);
}
static inline void
list_add_tail(struct list_head *new, struct list_head *head)
{
- linux_list_add(new, head->prev, head);
+ __list_add(new, head->prev, head);
}
static inline void