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/gt Avoid dropping const ...



details:   https://anonhg.NetBSD.org/src/rev/09861ac69433
branches:  trunk
changeset: 1028496:09861ac69433
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:11:03 2021 +0000

description:
Avoid dropping const qualifier


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

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

diffs (24 lines):

diff -r 6528d76bfd27 -r 09861ac69433 sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h
--- a/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h        Sun Dec 19 11:10:56 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h        Sun Dec 19 11:11:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intel_gtt.h,v 1.4 2021/12/19 01:35:35 riastradh Exp $  */
+/*     $NetBSD: intel_gtt.h,v 1.5 2021/12/19 11:11:03 riastradh Exp $  */
 
 /* SPDX-License-Identifier: MIT */
 /*
@@ -185,10 +185,10 @@
        other)
 
 #define px_base(px) \
-       __px_choose_expr(px, struct i915_page_dma *, __x, \
-       __px_choose_expr(px, struct i915_page_scratch *, &__x->base, \
-       __px_choose_expr(px, struct i915_page_table *, &__x->base, \
-       __px_choose_expr(px, struct i915_page_directory *, &__x->pt.base, \
+       __px_choose_expr(px, const struct i915_page_dma *, __x, \
+       __px_choose_expr(px, const struct i915_page_scratch *, &__x->base, \
+       __px_choose_expr(px, const struct i915_page_table *, &__x->base, \
+       __px_choose_expr(px, const struct i915_page_directory *, &__x->pt.base, \
        (void)0))))
 #ifdef __NetBSD__
 #define px_dma(px) (px_base(px)->map->dm_segs[0].ds_addr)



Home | Main Index | Thread Index | Old Index