summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2013-11-07 05:33:06 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2013-11-07 05:33:06 +0000
commitc2f6f798739f1aa62635f491a73fbe12f97d3999 (patch)
treef1e13571e059dd04289ba9cf50f0ba279be20512 /sys/dev/pci/drm/drmP.h
parent112294b749006fd4d54f04de98d4d04e7747f839 (diff)
add a simplistic version of WARN_ON_ONCE() that doesn't warn
reduces the diff to linux and avoids a clang warning brad mentioned ok kettenis@ brad@
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index f48e9ad8df2..b464f402683 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: drmP.h,v 1.151 2013/11/02 22:58:10 kettenis Exp $ */
+/* $OpenBSD: drmP.h,v 1.152 2013/11/07 05:33:05 jsg Exp $ */
/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
* Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
*/
@@ -176,6 +176,10 @@ do { \
(condition); \
})
+#define WARN_ON_ONCE(condition) ({ \
+ (condition); \
+})
+
#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-ELAST)
static inline void *