Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:14:22 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm: drm_property.c

Log Message:
Do arithmetic on char *, not on void *.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/drm2/dist/drm/drm_property.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/drm_property.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_property.c:1.2 src/sys/external/bsd/drm2/dist/drm/drm_property.c:1.3
--- src/sys/external/bsd/drm2/dist/drm/drm_property.c:1.2	Sat Dec 18 23:44:57 2021
+++ src/sys/external/bsd/drm2/dist/drm/drm_property.c	Sun Dec 19 01:14:22 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: drm_property.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $	*/
+/*	$NetBSD: drm_property.c,v 1.3 2021/12/19 01:14:22 riastradh Exp $	*/
 
 /*
  * Copyright (c) 2016 Intel Corporation
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_property.c,v 1.2 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_property.c,v 1.3 2021/12/19 01:14:22 riastradh Exp $");
 
 #include <linux/export.h>
 #include <linux/uaccess.h>
@@ -576,7 +576,7 @@ drm_property_create_blob(struct drm_devi
 	/* This must be explicitly initialised, so we can safely call list_del
 	 * on it in the removal handler, even if it isn't in a file list. */
 	INIT_LIST_HEAD(&blob->head_file);
-	blob->data = (void *)blob + sizeof(*blob);
+	blob->data = (char *)blob + sizeof(*blob);
 	blob->length = length;
 	blob->dev = dev;
 

Reply via email to