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 Fix pointer nat...



details:   https://anonhg.NetBSD.org/src/rev/f21c1ebf59b7
branches:  riastradh-drm2
changeset: 788375:f21c1ebf59b7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:29:43 2013 +0000

description:
Fix pointer nature of INIT_COMPLETION in <linux/completion.h>.

diffstat:

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

diffs (25 lines):

diff -r d617923c7a19 -r f21c1ebf59b7 sys/external/bsd/drm2/include/linux/completion.h
--- a/sys/external/bsd/drm2/include/linux/completion.h  Wed Jul 24 03:29:29 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/completion.h  Wed Jul 24 03:29:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: completion.h,v 1.1.2.2 2013/07/24 03:15:59 riastradh Exp $     */
+/*     $NetBSD: completion.h,v 1.1.2.3 2013/07/24 03:29:43 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -117,9 +117,14 @@
  * until someone calls complete or complete_all.
  *
  * This operation is very different from its lowercase counterpart.
+ *
+ * For some reason this works on the completion object itself, not on a
+ * pointer thereto, so it must be a macro.
  */
+#define        INIT_COMPLETION(COMPLETION)     INIT_COMPLETION_blorp(&(COMPLETION))
+
 static inline void
-INIT_COMPLETION(struct completion *completion)
+INIT_COMPLETION_blorp(struct completion *completion)
 {
 
        mutex_enter(&completion->c_lock);



Home | Main Index | Thread Index | Old Index