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/linux drm: set f_magic in the stub fence.
details: https://anonhg.NetBSD.org/src/rev/14bc5ea79a0c
branches: trunk
changeset: 1028933:14bc5ea79a0c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:30:56 2021 +0000
description:
drm: set f_magic in the stub fence.
Author: phone <mrg%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/linux/linux_dma_fence.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 01e399d7a5ab -r 14bc5ea79a0c sys/external/bsd/drm2/linux/linux_dma_fence.c
--- a/sys/external/bsd/drm2/linux/linux_dma_fence.c Sun Dec 19 12:30:47 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_dma_fence.c Sun Dec 19 12:30:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_dma_fence.c,v 1.28 2021/12/19 12:23:34 riastradh Exp $ */
+/* $NetBSD: linux_dma_fence.c,v 1.29 2021/12/19 12:30:56 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence.c,v 1.28 2021/12/19 12:23:34 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence.c,v 1.29 2021/12/19 12:30:56 riastradh Exp $");
#include <sys/atomic.h>
#include <sys/condvar.h>
@@ -238,6 +238,9 @@
static struct dma_fence fence = {
.refcount = {1}, /* always referenced */
.flags = 1u << DMA_FENCE_FLAG_SIGNALED_BIT,
+#ifdef DIAGNOSTIC
+ .f_magic = FENCE_MAGIC_GOOD,
+#endif
};
return dma_fence_get(&fence);
Home |
Main Index |
Thread Index |
Old Index