Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/common/include/linux drm: Add __is_constexpr.



details:   https://anonhg.NetBSD.org/src/rev/4af8b44a0d02
branches:  trunk
changeset: 1028523:4af8b44a0d02
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:14:42 2021 +0000

description:
drm: Add __is_constexpr.

diffstat:

 sys/external/bsd/common/include/linux/kernel.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 28d03f3f4e32 -r 4af8b44a0d02 sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h    Sun Dec 19 11:14:34 2021 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h    Sun Dec 19 11:14:42 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernel.h,v 1.40 2021/12/19 10:56:30 riastradh Exp $    */
+/*     $NetBSD: kernel.h,v 1.41 2021/12/19 11:14:42 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -123,6 +123,8 @@
 
 #define        ARRAY_SIZE(ARRAY)       __arraycount(ARRAY)
 
+#define        __is_constexpr(x)       __builtin_constant_p(x)
+
 #define        swap(X, Y)      do                                              \
 {                                                                      \
        /* XXX Kludge for type-safety.  */                              \



Home | Main Index | Thread Index | Old Index