Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2024 21:33:13 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a620fdcdb7d5 - stable/14 - LinuxKPI: Rename linux_list_add to __list_add() in linux/list.h
Message-ID:  <202402172133.41HLXD8E021313@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=a620fdcdb7d58c328a44fc306e63a3d6ae2d4a50

commit a620fdcdb7d58c328a44fc306e63a3d6ae2d4a50
Author:     Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2023-12-24 08:20:00 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-02-17 20:58:39 +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
    
    (cherry picked from commit c58ddc25462699c0d13bf703adbed661bb102cac)
---
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402172133.41HLXD8E021313>