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/dist/drm/i915 Disable some unimportant...



details:   https://anonhg.NetBSD.org/src/rev/7f2e4ef0f852
branches:  trunk
changeset: 1028445:7f2e4ef0f852
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:04:14 2021 +0000

description:
Disable some unimportant broken BUILD_BUG_ONs.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r cc8fc974eef6 -r 7f2e4ef0f852 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h    Sun Dec 19 11:04:05 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h    Sun Dec 19 11:04:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_drv.h,v 1.35 2021/12/19 01:24:25 riastradh Exp $  */
+/*     $NetBSD: i915_drv.h,v 1.36 2021/12/19 11:04:14 riastradh Exp $  */
 
 /* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
  */
@@ -1477,7 +1477,9 @@
        const unsigned int pi = __platform_mask_index(info, p);
        const unsigned int pb = __platform_mask_bit(info, p);
 
+#if 0
        BUILD_BUG_ON(!__builtin_constant_p(p));
+#endif
 
        return info->platform_mask[pi] & BIT(pb);
 }
@@ -1492,9 +1494,11 @@
        const unsigned int msb = BITS_PER_TYPE(info->platform_mask[0]) - 1;
        const u32 mask = info->platform_mask[pi];
 
+#if 0
        BUILD_BUG_ON(!__builtin_constant_p(p));
        BUILD_BUG_ON(!__builtin_constant_p(s));
        BUILD_BUG_ON((s) >= INTEL_SUBPLATFORM_BITS);
+#endif
 
        /* Shift and test on the MSB position so sign flag can be used. */
        return ((mask << (msb - pb)) & (mask << (msb - s))) & BIT(msb);



Home | Main Index | Thread Index | Old Index