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 Use a non-NULL ...



details:   https://anonhg.NetBSD.org/src/rev/ef7af860393d
branches:  riastradh-drm2
changeset: 788477:ef7af860393d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:59:06 2013 +0000

description:
Use a non-NULL value for bogus <linux/workqueue.h> stubs.

diffstat:

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

diffs (40 lines):

diff -r 961c3559565c -r ef7af860393d sys/external/bsd/drm2/include/linux/workqueue.h
--- a/sys/external/bsd/drm2/include/linux/workqueue.h   Wed Jul 24 03:58:51 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/workqueue.h   Wed Jul 24 03:59:06 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: workqueue.h,v 1.1.2.6 2013/07/24 03:37:04 riastradh Exp $      */
+/*     $NetBSD: workqueue.h,v 1.1.2.7 2013/07/24 03:59:06 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -107,12 +107,13 @@
 static inline struct workqueue_struct *
 alloc_ordered_workqueue(const char *name __unused, int flags __unused)
 {
-       return NULL;
+       return (void *)(uintptr_t)0xdeadbeef;
 }
 
 static inline void
 destroy_workqueue(struct workqueue_struct *wq __unused)
 {
+       KASSERT(wq == (void *)(uintptr_t)0xdeadbeef);
 }
 
 #define        flush_workqueue(wq)             WARN(true, "Can't flush workqueues!");
@@ -121,6 +122,7 @@
 static inline void
 queue_work(struct workqueue_struct *wq __unused, struct work_struct *work)
 {
+       KASSERT(wq == (void *)(uintptr_t)0xdeadbeef);
        schedule_work(work);
 }
 
@@ -129,6 +131,7 @@
     struct delayed_work *dw,
     unsigned int ticks)
 {
+       KASSERT(wq == (void *)(uintptr_t)0xdeadbeef);
        schedule_delayed_work(dw, ticks);
 }
 



Home | Main Index | Thread Index | Old Index