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 Add __UNCONST. Used onl...
details: https://anonhg.NetBSD.org/src/rev/905f32938c03
branches: trunk
changeset: 365972:905f32938c03
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:26:43 2018 +0000
description:
Add __UNCONST. Used only for fetches, sometimes const.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_drv.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 03319235b211 -r 905f32938c03 sys/external/bsd/drm2/dist/drm/i915/i915_drv.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h Mon Aug 27 07:26:30 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.h Mon Aug 27 07:26:43 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_drv.h,v 1.20 2018/08/27 07:26:30 riastradh Exp $ */
+/* $NetBSD: i915_drv.h,v 1.21 2018/08/27 07:26:43 riastradh Exp $ */
/* i915_drv.h -- Private header for the I915 driver -*- linux-c -*-
*/
@@ -2504,9 +2504,9 @@
#define __I915__(p) ({ \
struct drm_i915_private *__p; \
if (__builtin_types_compatible_p(typeof(*p), struct drm_i915_private)) \
- __p = (struct drm_i915_private *)p; \
+ __p = (struct drm_i915_private *)__UNCONST(p); \
else if (__builtin_types_compatible_p(typeof(*p), struct drm_device)) \
- __p = to_i915((struct drm_device *)p); \
+ __p = to_i915((struct drm_device *)__UNCONST(p)); \
else \
BUILD_BUG(); \
__p; \
Home |
Main Index |
Thread Index |
Old Index