summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2023-01-12 00:27:27 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2023-01-12 00:27:27 +0000
commit8dc18566272f50799f76da5e8a9bb9a25afade79 (patch)
tree158d1a757834ac8ec8d616953da9aae312fbde01 /sys/dev
parentebbee3c6618ceac8d12b56ab40e3f116922beb30 (diff)
Compiling kernel with witness option failed since drm update. Do
not define struct rwlock variable within function, witness needs global access. OK jsg@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/i915/i915_gpu_error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gpu_error.c b/sys/dev/pci/drm/i915/i915_gpu_error.c
index 714fcf76fcd..c2926afa051 100644
--- a/sys/dev/pci/drm/i915/i915_gpu_error.c
+++ b/sys/dev/pci/drm/i915/i915_gpu_error.c
@@ -2150,10 +2150,11 @@ __i915_gpu_coredump(struct intel_gt *gt, intel_engine_mask_t engine_mask, u32 du
return error;
}
+static DEFINE_MUTEX(capture_mutex);
+
struct i915_gpu_coredump *
i915_gpu_coredump(struct intel_gt *gt, intel_engine_mask_t engine_mask, u32 dump_flags)
{
- static DEFINE_MUTEX(capture_mutex);
int ret = mutex_lock_interruptible(&capture_mutex);
struct i915_gpu_coredump *dump;