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 i915: Reduce diff with -...
details: https://anonhg.NetBSD.org/src/rev/839e3a539671
branches: trunk
changeset: 1028780:839e3a539671
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:00:40 2021 +0000
description:
i915: Reduce diff with -Wno-pointer-arith.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_request.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 7216f65701b5 -r 839e3a539671 sys/external/bsd/drm2/dist/drm/i915/i915_request.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_request.c Sun Dec 19 12:00:31 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_request.c Sun Dec 19 12:00:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_request.c,v 1.7 2021/12/19 11:58:41 riastradh Exp $ */
+/* $NetBSD: i915_request.c,v 1.8 2021/12/19 12:00:40 riastradh Exp $ */
/*
* Copyright © 2008-2015 Intel Corporation
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_request.c,v 1.7 2021/12/19 11:58:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_request.c,v 1.8 2021/12/19 12:00:40 riastradh Exp $");
#include <linux/dma-fence-array.h>
#include <linux/irq_work.h>
@@ -1204,10 +1204,10 @@
*/
head = rq->infix;
if (rq->postfix < head) {
- memset((char *)vaddr + head, 0, rq->ring->size - head);
+ memset(vaddr + head, 0, rq->ring->size - head);
head = 0;
}
- memset((char *)vaddr + head, 0, rq->postfix - head);
+ memset(vaddr + head, 0, rq->postfix - head);
rq->infix = rq->postfix;
}
Home |
Main Index |
Thread Index |
Old Index