Source-Changes-HG archive

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

[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Add list_prev t...



details:   https://anonhg.NetBSD.org/src/rev/3eac3d0657d1
branches:  riastradh-drm2
changeset: 788183:3eac3d0657d1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:36:18 2013 +0000

description:
Add list_prev to <linux/list.h>.

diffstat:

 sys/external/bsd/drm2/include/linux/list.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 252b46689510 -r 3eac3d0657d1 sys/external/bsd/drm2/include/linux/list.h
--- a/sys/external/bsd/drm2/include/linux/list.h        Wed Jul 24 02:36:04 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/list.h        Wed Jul 24 02:36:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: list.h,v 1.1.2.9 2013/07/24 02:36:04 riastradh Exp $   */
+/*     $NetBSD: list.h,v 1.1.2.10 2013/07/24 02:36:18 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -67,6 +67,12 @@
        return node->lh_next;
 }
 
+static inline struct list_head *
+list_prev(const struct list_head *node)
+{
+       return node->lh_prev;
+}
+
 static inline int
 list_empty(const struct list_head *head)
 {



Home | Main Index | Thread Index | Old Index