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



details:   https://anonhg.NetBSD.org/src/rev/8069c00d76d7
branches:  trunk
changeset: 365893:8069c00d76d7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:08:20 2018 +0000

description:
No arithmetic on void *.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gem_execbuffer.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r d6972bcebf76 -r 8069c00d76d7 sys/external/bsd/drm2/dist/drm/i915/i915_gem_execbuffer.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem_execbuffer.c Mon Aug 27 07:08:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem_execbuffer.c Mon Aug 27 07:08:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_execbuffer.c,v 1.7 2018/08/27 07:07:56 riastradh Exp $        */
+/*     $NetBSD: i915_gem_execbuffer.c,v 1.8 2018/08/27 07:08:20 riastradh Exp $        */
 
 /*
  * Copyright © 2008,2010 Intel Corporation
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_execbuffer.c,v 1.7 2018/08/27 07:07:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_execbuffer.c,v 1.8 2018/08/27 07:08:20 riastradh Exp $");
 
 #include <drm/drmP.h>
 #include <drm/i915_drm.h>
@@ -352,7 +352,8 @@
                }
 
                iowrite32(upper_32_bits(delta),
-                         reloc_page + offset_in_page(offset));
+                   (uint32_t __iomem *)
+                   ((char __iomem *)reloc_page + offset_in_page(offset)));
        }
 
 #ifdef __NetBSD__



Home | Main Index | Thread Index | Old Index