Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/asm Define BUILD_BUG_ON_INVALID.



details:   https://anonhg.NetBSD.org/src/rev/03fc47614837
branches:  trunk
changeset: 1027798:03fc47614837
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:46:36 2021 +0000

description:
Define BUILD_BUG_ON_INVALID.

diffstat:

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

diffs (17 lines):

diff -r c4cea274338a -r 03fc47614837 sys/external/bsd/drm2/include/asm/bug.h
--- a/sys/external/bsd/drm2/include/asm/bug.h   Sun Dec 19 00:46:29 2021 +0000
+++ b/sys/external/bsd/drm2/include/asm/bug.h   Sun Dec 19 00:46:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bug.h,v 1.6 2019/09/20 12:40:23 kamil Exp $    */
+/*     $NetBSD: bug.h,v 1.7 2021/12/19 00:46:36 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -49,6 +49,7 @@
 #define        BUILD_BUG()             do {} while (0)
 #define        BUILD_BUG_ON(CONDITION) DRMCTASSERT(!(CONDITION))
 #define        BUILD_BUG_ON_MSG(CONDITION,MSG) DRMCTASSERT(!(CONDITION))
+#define        BUILD_BUG_ON_INVALID(EXPR)      ((void)sizeof(EXPR))
 
 /* XXX Rate limit?  */
 #define WARN(CONDITION, FMT, ...)                                      \



Home | Main Index | Thread Index | Old Index