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/radeon No arithmetic on void *.



details:   https://anonhg.NetBSD.org/src/rev/a9a0e555f2f0
branches:  trunk
changeset: 366114:a9a0e555f2f0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:52:42 2018 +0000

description:
No arithmetic on void *.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/rs600.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5bbc97964d55 -r a9a0e555f2f0 sys/external/bsd/drm2/dist/drm/radeon/rs600.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/rs600.c     Mon Aug 27 07:52:32 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/rs600.c     Mon Aug 27 07:52:42 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rs600.c,v 1.3 2018/08/27 04:58:36 riastradh Exp $      */
+/*     $NetBSD: rs600.c,v 1.4 2018/08/27 07:52:42 riastradh Exp $      */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -38,7 +38,7 @@
  * of the RS600 GART block).
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rs600.c,v 1.3 2018/08/27 04:58:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rs600.c,v 1.4 2018/08/27 07:52:42 riastradh Exp $");
 
 #include <drm/drmP.h>
 #include "radeon.h"
@@ -663,7 +663,7 @@
                         uint64_t entry)
 {
        void __iomem *ptr = (void *)rdev->gart.ptr;
-       writeq(entry, ptr + (i * 8));
+       writeq(entry, (char __iomem *)ptr + (i * 8));
 }
 
 #ifdef __NetBSD__



Home | Main Index | Thread Index | Old Index