[Intel-gfx] [PATCH 3/3] drm/i915/dpt: replace GEM_BUG_ON() with drm_WARN_ON()
Rodrigo Vivi
rodrigo.vivi at intel.com
Thu Sep 14 12:41:22 UTC 2023
On Thu, Sep 14, 2023 at 12:34:59PM +0300, Jani Nikula wrote:
> Avoid using GEM_BUG_ON() in display code.
>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_dpt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dpt.c b/drivers/gpu/drm/i915/display/intel_dpt.c
> index fbfd8f959f17..48582b31b7f7 100644
> --- a/drivers/gpu/drm/i915/display/intel_dpt.c
> +++ b/drivers/gpu/drm/i915/display/intel_dpt.c
> @@ -29,7 +29,7 @@ static inline struct i915_dpt *
> i915_vm_to_dpt(struct i915_address_space *vm)
> {
> BUILD_BUG_ON(offsetof(struct i915_dpt, vm));
> - GEM_BUG_ON(!i915_is_dpt(vm));
> + drm_WARN_ON(&vm->i915->drm, !i915_is_dpt(vm));
> return container_of(vm, struct i915_dpt, vm);
> }
>
> --
> 2.39.2
>
More information about the Intel-gfx
mailing list