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/nouveau/nvkm/subdev/bios No a...



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

description:
No arithmetic on void *.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/nouveau_nvkm_subdev_bios_shadowpci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 30eda71a03b5 -r e54ca9ca72bc sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/nouveau_nvkm_subdev_bios_shadowpci.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/nouveau_nvkm_subdev_bios_shadowpci.c      Mon Aug 27 07:41:51 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/nouveau_nvkm_subdev_bios_shadowpci.c      Mon Aug 27 07:42:02 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_subdev_bios_shadowpci.c,v 1.2 2018/08/27 04:58:33 riastradh Exp $ */
+/*     $NetBSD: nouveau_nvkm_subdev_bios_shadowpci.c,v 1.3 2018/08/27 07:42:02 riastradh Exp $ */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -23,7 +23,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_subdev_bios_shadowpci.c,v 1.2 2018/08/27 04:58:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_subdev_bios_shadowpci.c,v 1.3 2018/08/27 07:42:02 riastradh Exp $");
 
 #include "priv.h"
 
@@ -44,7 +44,8 @@
 {
        struct priv *priv = data;
        if (offset + length <= priv->size) {
-               memcpy_fromio(bios->data + offset, priv->rom + offset, length);
+               memcpy_fromio(bios->data + offset,
+                   (const char __iomem *)priv->rom + offset, length);
                return length;
        }
        return 0;



Home | Main Index | Thread Index | Old Index