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 Implement BUILD_B...
details: https://anonhg.NetBSD.org/src/rev/0265368002d6
branches: riastradh-drm2
changeset: 788422:0265368002d6
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:43:55 2013 +0000
description:
Implement BUILD_BUG_ON via CTASSERT in drm2 Linux <asm/bug.h>.
diffstat:
sys/external/bsd/drm2/include/asm/bug.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 11bd99384f81 -r 0265368002d6 sys/external/bsd/drm2/include/asm/bug.h
--- a/sys/external/bsd/drm2/include/asm/bug.h Wed Jul 24 03:43:41 2013 +0000
+++ b/sys/external/bsd/drm2/include/asm/bug.h Wed Jul 24 03:43:55 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bug.h,v 1.1.2.7 2013/07/24 03:35:34 riastradh Exp $ */
+/* $NetBSD: bug.h,v 1.1.2.8 2013/07/24 03:43:55 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,6 +38,8 @@
#define BUG() panic("%s:%d: BUG!", __FILE__, __LINE__)
#define BUG_ON(CONDITION) KASSERT(!(CONDITION))
+#define BUILD_BUG_ON(CONDITION) CTASSERT(!(CONDITION))
+
/* XXX Rate limit? */
#define WARN(CONDITION, FMT, ...) \
linux_warning((CONDITION)? \
Home |
Main Index |
Thread Index |
Old Index