artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c38b31
)
Compiling kernel with witness option failed since drm update. Do
author
bluhm
<bluhm@openbsd.org>
Thu, 12 Jan 2023 00:27:26 +0000
(
00:27
+0000)
committer
bluhm
<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
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/i915/i915_gpu_error.c
b/sys/dev/pci/drm/i915/i915_gpu_error.c
index
714fcf7
..
c2926af
100644
(file)
--- 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;