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/97e409737f83
branches:  trunk
changeset: 992571:97e409737f83
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:04:02 2018 +0000

description:
No arithmetic on void *.

diffstat:

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

diffs (27 lines):

diff -r bb449eb2c9d2 -r 97e409737f83 sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c     Mon Aug 27 07:03:50 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_cmd_parser.c     Mon Aug 27 07:04:02 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_cmd_parser.c,v 1.5 2018/08/27 04:58:23 riastradh Exp $    */
+/*     $NetBSD: i915_cmd_parser.c,v 1.6 2018/08/27 07:04:02 riastradh Exp $    */
 
 /*
  * Copyright © 2013 Intel Corporation
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_cmd_parser.c,v 1.5 2018/08/27 04:58:23 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_cmd_parser.c,v 1.6 2018/08/27 07:04:02 riastradh Exp $");
 
 #include "i915_drv.h"
 
@@ -955,7 +955,7 @@
                goto unmap_src;
        }
 
-       src = src_base + offset_in_page(batch_start_offset);
+       src = (char *)src_base + offset_in_page(batch_start_offset);
        if (needs_clflush)
                drm_clflush_virt_range(src, batch_len);
 



Home | Main Index | Thread Index | Old Index