[PATCH] drm/amd/display: Fix drm_err argument type error

Li, Roman Roman.Li at amd.com
Wed Apr 9 16:47:47 UTC 2025


[Public]

Reviewed-by: Roman Li <roman.li at amd.com>

Please fix your authorship format as "First_name Last_name <your_email at amd.com>" before merge.

Thanks,
Roman

> -----Original Message-----
> From: chengjya <chengjya at amd.com>
> Sent: Wednesday, April 9, 2025 5:17 AM
> To: Li, Roman <Roman.Li at amd.com>; amd-gfx at lists.freedesktop.org; Kaszewski,
> Dominik <Dominik.Kaszewski at amd.com>; Wheeler, Daniel
> <Daniel.Wheeler at amd.com>; Lee, Alvin <Alvin.Lee2 at amd.com>
> Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Koenig, Christian
> <Christian.Koenig at amd.com>; Zhou, Bob <Bob.Zhou at amd.com>; Yao, Chengjun
> <Chengjun.Yao at amd.com>
> Subject: [PATCH] drm/amd/display: Fix drm_err argument type error
>
> The drm_err function expects a struct drm_device * pointer, so fix it.
>
> Fixes: af632d3f59e6 ("drm/amd/display: HDCP Locality check using DMUB Fused
> IO")
> Signed-off-by: chengjya <chengjya at amd.com>
> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 5e6fdb0066b0..60d10d8cdf59 100755
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -2300,7 +2300,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
>
>               if (!register_dmub_notify_callback(adev,
> DMUB_NOTIFICATION_FUSED_IO,
>                       dmub_aux_fused_io_callback, false)) {
> -                     drm_err(adev, "amdgpu: fail to register dmub fused io
> callback");
> +                     drm_err(adev_to_drm(adev), "amdgpu: fail to register dmub
> fused io callback");
>                       goto error;
>               }
>               /* Enable outbox notification only after IRQ handlers are registered
> and DMUB is alive.
> --
> 2.43.0



More information about the amd-gfx mailing list