drm/amd/display: Fix drm_err argument type error
Subsystems (3)
PATCH 1/1 drm/amd/display: Fix drm_err argument type error
The drm_err function expects a struct drm_device * pointer, so fix it.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -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.
Signature · 1 line
2.43.0
[Public]
Please fix your authorship format as "First_name Last_name <[email protected]>" before merge.
Thanks,
Roman
Quoted 40 lines
-----Original Message-----
From: chengjya <[email protected]>
Sent: Wednesday, April 9, 2025 5:17 AM
To: Li, Roman <[email protected]>; [email protected]; Kaszewski, Dominik <[email protected]>; Wheeler, Daniel <[email protected]>; Lee, Alvin <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Zhou, Bob <[email protected]>; Yao, Chengjun <[email protected]>
Subject: [PATCH] drm/amd/display: Fixdrm_errargument type errorThe
drm_errfunction expects a structdrm_device* pointer, so fix it.Fixes af632d3f59e6 ("drm/amd/display: HDCP Locality check using DMUB FusedIO")
Signed-off-by chengjya <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1
-1@@ -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 registeredand DMUB is alive.
--
2.43.0