Source-Changes-HG archive

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

[src/trunk]: src/sys/sys kernel is not allowed to use CIRCLEQ anymore (idea f...



details:   https://anonhg.NetBSD.org/src/rev/4f021e018b19
branches:  trunk
changeset: 791603:4f021e018b19
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 25 03:02:57 2013 +0000

description:
kernel is not allowed to use CIRCLEQ anymore (idea from gimpy)

diffstat:

 sys/sys/queue.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 2340504e0348 -r 4f021e018b19 sys/sys/queue.h
--- a/sys/sys/queue.h   Mon Nov 25 03:02:30 2013 +0000
+++ b/sys/sys/queue.h   Mon Nov 25 03:02:57 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: queue.h,v 1.58 2013/11/23 14:41:38 christos Exp $      */
+/*     $NetBSD: queue.h,v 1.59 2013/11/25 03:02:57 christos Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -599,6 +599,7 @@
        (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last))
 
 
+#ifndef _KERNEL
 /*
  * Circular queue definitions. Do not use. We still keep the macros
  * for compatibility but because of pointer aliasing issues their use
@@ -778,5 +779,6 @@
        (((elm)->field.cqe_prev == CIRCLEQ_ENDC(head))                  \
            ? ((head)->cqh_last)                                        \
            : (elm->field.cqe_prev))
+#endif /* !_KERNEL */
 
 #endif /* !_SYS_QUEUE_H_ */



Home | Main Index | Thread Index | Old Index