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/2eee13aa716a
branches:  trunk
changeset: 992801:2eee13aa716a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:50:30 2018 +0000

description:
No arithmetic on void *.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f99a6a1864d3 -r 2eee13aa716a sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd.c        Mon Aug 27 07:50:19 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_uvd.c        Mon Aug 27 07:50:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_uvd.c,v 1.3 2018/08/27 04:58:36 riastradh Exp $ */
+/*     $NetBSD: radeon_uvd.c,v 1.4 2018/08/27 07:50:30 riastradh Exp $ */
 
 /*
  * Copyright 2011 Advanced Micro Devices, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_uvd.c,v 1.3 2018/08/27 04:58:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_uvd.c,v 1.4 2018/08/27 07:50:30 riastradh Exp $");
 
 #include <linux/firmware.h>
 #include <linux/module.h>
@@ -753,7 +753,7 @@
        uint64_t offs = radeon_bo_size(rdev->uvd.vcpu_bo) -
                RADEON_GPU_PAGE_SIZE;
 
-       uint32_t *msg = rdev->uvd.cpu_addr + offs;
+       uint32_t *msg = (void *)((char *)rdev->uvd.cpu_addr + offs);
        uint64_t addr = rdev->uvd.gpu_addr + offs;
 
        int r, i;
@@ -789,7 +789,7 @@
        uint64_t offs = radeon_bo_size(rdev->uvd.vcpu_bo) -
                RADEON_GPU_PAGE_SIZE;
 
-       uint32_t *msg = rdev->uvd.cpu_addr + offs;
+       uint32_t *msg = (void *)((char *)rdev->uvd.cpu_addr + offs);
        uint64_t addr = rdev->uvd.gpu_addr + offs;
 
        int r, i;



Home | Main Index | Thread Index | Old Index