Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux Linux wants llist_node::...



details:   https://anonhg.NetBSD.org/src/rev/3b0f624edfe9
branches:  trunk
changeset: 1027992:3b0f624edfe9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:26:05 2021 +0000

description:
Linux wants llist_node::next.

diffstat:

 sys/external/bsd/drm2/include/linux/llist.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 7375b0dd9caf -r 3b0f624edfe9 sys/external/bsd/drm2/include/linux/llist.h
--- a/sys/external/bsd/drm2/include/linux/llist.h       Sun Dec 19 01:25:58 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/llist.h       Sun Dec 19 01:26:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: llist.h,v 1.2 2021/12/19 00:54:54 riastradh Exp $      */
+/*     $NetBSD: llist.h,v 1.3 2021/12/19 01:26:05 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 };
 
 struct llist_node {
-       struct llist_node       *llh_next;
+       struct llist_node       *next;
 };
 
 static inline void
@@ -70,7 +70,7 @@
 
        do {
                first = head->llh_first;
-               node->llh_next = first;
+               node->next = first;
                membar_exit();
        } while (atomic_cas_ptr(&head->llh_first, first, node) != first);
 
@@ -96,7 +96,7 @@
        do {
                first = head->llh_first;
                membar_datadep_consumer();
-       } while (atomic_cas_ptr(&head->llh_first, first, first->llh_next)
+       } while (atomic_cas_ptr(&head->llh_first, first, first->next)
            != first);
        membar_enter();
 
@@ -108,7 +108,7 @@
                        llist_entry(NODE, typeof(*(ENTRY)), FIELD));          \
                (ENTRY) == NULL ? 0 :                                         \
                    (membar_datadep_consumer(),                               \
-                       (TMP) = list_entry((ENTRY)->FIELD.llh_next,           \
+                       (TMP) = list_entry((ENTRY)->FIELD.next,       \
                            typeof(*(ENTRY)), FIELD),                         \
                        1);                                                   \
                 (ENTRY) = (TMP))



Home | Main Index | Thread Index | Old Index