diff options
author | 2020-05-25 15:19:57 +0100 | |
---|---|---|
committer | 2020-05-25 16:45:18 +0100 | |
commit | ea97c4ca54e45c9458f73e9dbef66439c2ae11f8 (patch) | |
tree | e0987d35ffac1160b7419ed25577901d1a045e21 /drivers/gpu/drm/i915/gem/i915_gem_userptr.c | |
parent | drm/i915/gt: Cancel the flush worker more thoroughly (diff) | |
download | linux-dev-ea97c4ca54e45c9458f73e9dbef66439c2ae11f8.tar.xz linux-dev-ea97c4ca54e45c9458f73e9dbef66439c2ae11f8.zip |
drm/i915/gem: Suppress some random warnings
Leave the error propagation in place, but limit the warnings to only
show up in CI if the unlikely errors are hit.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200525141957.3061-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/gem/i915_gem_userptr.c')
-rw-r--r-- | drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c b/drivers/gpu/drm/i915/gem/i915_gem_userptr.c index 8b0708708671..2226146b01c9 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_userptr.c @@ -235,7 +235,7 @@ i915_gem_userptr_init__mmu_notifier(struct drm_i915_gem_object *obj, if (flags & I915_USERPTR_UNSYNCHRONIZED) return capable(CAP_SYS_ADMIN) ? 0 : -EPERM; - if (drm_WARN_ON(obj->base.dev, obj->userptr.mm == NULL)) + if (GEM_WARN_ON(!obj->userptr.mm)) return -EINVAL; mn = i915_mmu_notifier_find(obj->userptr.mm); |