Compiling kernel with witness option failed since drm update. Do
authorbluhm <bluhm@openbsd.org>
Thu, 12 Jan 2023 00:27:26 +0000 (00:27 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 12 Jan 2023 00:27:26 +0000 (00:27 +0000)
not define struct rwlock variable within function, witness needs
global access.
OK jsg@

sys/dev/pci/drm/i915/i915_gpu_error.c

index 714fcf7..c2926af 100644 (file)
@@ -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;