Module Name: src
Committed By: riastradh
Date: Wed Jul 24 03:29:43 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: completion.h
Log Message:
Fix pointer nature of INIT_COMPLETION in <linux/completion.h>.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 \
src/sys/external/bsd/drm2/include/linux/completion.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/completion.h
diff -u src/sys/external/bsd/drm2/include/linux/completion.h:1.1.2.2 src/sys/external/bsd/drm2/include/linux/completion.h:1.1.2.3
--- src/sys/external/bsd/drm2/include/linux/completion.h:1.1.2.2 Wed Jul 24 03:15:59 2013
+++ src/sys/external/bsd/drm2/include/linux/completion.h Wed Jul 24 03:29:43 2013
@@ -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 @@ complete_all(struct completion *completi
* 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);