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 Define list_fir...
details: https://anonhg.NetBSD.org/src/rev/4e7ace5ca51c
branches: riastradh-drm2
changeset: 788121:4e7ace5ca51c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:20:24 2013 +0000
description:
Define list_first_entry in <linux/list.h>.
diffstat:
sys/external/bsd/drm2/include/linux/list.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r c0128542cc67 -r 4e7ace5ca51c sys/external/bsd/drm2/include/linux/list.h
--- a/sys/external/bsd/drm2/include/linux/list.h Wed Jul 24 02:20:09 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/list.h Wed Jul 24 02:20:24 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: list.h,v 1.1.2.6 2013/07/24 02:11:38 riastradh Exp $ */
+/* $NetBSD: list.h,v 1.1.2.7 2013/07/24 02:20:24 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -138,6 +138,8 @@
}
#define list_entry(PTR, TYPE, FIELD) container_of(PTR, TYPE, FIELD)
+#define list_first_entry(PTR, TYPE, FIELD) \
+ list_entry(list_first((PTR)), TYPE, FIELD)
#define list_for_each(VAR, HEAD) \
for ((VAR) = list_first((HEAD)); \
Home |
Main Index |
Thread Index |
Old Index