diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-01-12 00:27:27 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-01-12 00:27:27 +0000 |
commit | 8dc18566272f50799f76da5e8a9bb9a25afade79 (patch) | |
tree | 158d1a757834ac8ec8d616953da9aae312fbde01 /sys/dev | |
parent | ebbee3c6618ceac8d12b56ab40e3f116922beb30 (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.c | 3 |
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; |