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/asm Define WARN_ONCE ...



details:   https://anonhg.NetBSD.org/src/rev/53e697022ec0
branches:  riastradh-drm2
changeset: 788393:53e697022ec0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:35:34 2013 +0000

description:
Define WARN_ONCE in Linux <asm/bug.h>.

diffstat:

 sys/external/bsd/drm2/include/asm/bug.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 75c8a297848e -r 53e697022ec0 sys/external/bsd/drm2/include/asm/bug.h
--- a/sys/external/bsd/drm2/include/asm/bug.h   Wed Jul 24 03:35:19 2013 +0000
+++ b/sys/external/bsd/drm2/include/asm/bug.h   Wed Jul 24 03:35:34 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bug.h,v 1.1.2.6 2013/07/24 03:25:28 riastradh Exp $    */
+/*     $NetBSD: bug.h,v 1.1.2.7 2013/07/24 03:35:34 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -45,6 +45,9 @@
                ##__VA_ARGS__), 1)                                      \
            : 0)
 
+#define        WARN_ONCE(CONDITION, FMT, ...)                                  \
+       WARN(CONDITION, FMT, ##__VA_ARGS__) /* XXX */
+
 #define        WARN_ON(CONDITION)      WARN(CONDITION, "%s\n", #CONDITION)
 #define        WARN_ON_SMP(CONDITION)  WARN_ON(CONDITION) /* XXX */
 #define        WARN_ON_ONCE(CONDITION) WARN_ON(CONDITION) /* XXX */



Home | Main Index | Thread Index | Old Index