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 no void * arithmetic



details:   https://anonhg.NetBSD.org/src/rev/941697b26973
branches:  trunk
changeset: 1027908:941697b26973
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:15:07 2021 +0000

description:
no void * arithmetic

diffstat:

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

diffs (27 lines):

diff -r c99ecb0a5ae7 -r 941697b26973 sys/external/bsd/drm2/dist/drm/drm_scdc_helper.c
--- a/sys/external/bsd/drm2/dist/drm/drm_scdc_helper.c  Sun Dec 19 01:15:00 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_scdc_helper.c  Sun Dec 19 01:15:07 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_scdc_helper.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $    */
+/*     $NetBSD: drm_scdc_helper.c,v 1.3 2021/12/19 01:15:07 riastradh Exp $    */
 
 /*
  * Copyright (c) 2015 NVIDIA Corporation. All rights reserved.
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_scdc_helper.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_scdc_helper.c,v 1.3 2021/12/19 01:15:07 riastradh Exp $");
 
 #include <linux/slab.h>
 #include <linux/delay.h>
@@ -114,7 +114,7 @@
        msg.buf = data;
 
        memcpy(data, &offset, sizeof(offset));
-       memcpy(data + 1, buffer, size);
+       memcpy((char *)data + 1, buffer, size);
 
        err = i2c_transfer(adapter, &msg, 1);
 



Home | Main Index | Thread Index | Old Index