mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/i915/fb: replace GEM_WARN_ON() with drm_WARN_ON()
Avoid using GEM_WARN_ON() in display code. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/593285450602c259b6985972d68511190c754bf5.1694684044.git.jani.nikula@intel.com
This commit is contained in:
parent
e7b3928242
commit
02cc0ebc41
|
|
@ -35,7 +35,8 @@ intel_pin_fb_obj_dpt(struct drm_framebuffer *fb,
|
|||
* We are not syncing against the binding (and potential migrations)
|
||||
* below, so this vm must never be async.
|
||||
*/
|
||||
GEM_WARN_ON(vm->bind_async_flags);
|
||||
if (drm_WARN_ON(&dev_priv->drm, vm->bind_async_flags))
|
||||
return ERR_PTR(-EINVAL);
|
||||
|
||||
if (WARN_ON(!i915_gem_object_is_framebuffer(obj)))
|
||||
return ERR_PTR(-EINVAL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user