[PATCH 5/5] drm/amdgpu: Remove dead code in amdgpu_ras_add_mca_err_addr

Chai, Thomas YiPeng.Chai at amd.com
Tue May 14 01:52:27 UTC 2024


[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: YiPeng Chai <YiPeng.Chai at amd.com>

-----------------
Best Regards,
Thomas

-----Original Message-----
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Ma Jun
Sent: Monday, May 13, 2024 4:56 PM
To: amd-gfx at lists.freedesktop.org
Cc: Feng, Kenneth <Kenneth.Feng at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>; Wang, Yang(Kevin) <KevinYang.Wang at amd.com>; Koenig, Christian <Christian.Koenig at amd.com>; Ma, Jun <Jun.Ma2 at amd.com>
Subject: [PATCH 5/5] drm/amdgpu: Remove dead code in amdgpu_ras_add_mca_err_addr

Remove dead code in amdgpu_ras_add_mca_err_addr

Signed-off-by: Ma Jun <Jun.Ma2 at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 6da02a209890..0cf67923c0fc 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -4292,21 +4292,8 @@ static struct ras_err_info *amdgpu_ras_error_get_info(struct ras_err_data *err_d

 void amdgpu_ras_add_mca_err_addr(struct ras_err_info *err_info, struct ras_err_addr *err_addr)  {
-       struct ras_err_addr *mca_err_addr;
-
        /* This function will be retired. */
        return;
-       mca_err_addr = kzalloc(sizeof(*mca_err_addr), GFP_KERNEL);
-       if (!mca_err_addr)
-               return;
-
-       INIT_LIST_HEAD(&mca_err_addr->node);
-
-       mca_err_addr->err_status = err_addr->err_status;
-       mca_err_addr->err_ipid = err_addr->err_ipid;
-       mca_err_addr->err_addr = err_addr->err_addr;
-
-       list_add_tail(&mca_err_addr->node, &err_info->err_addr_list);
 }

 void amdgpu_ras_del_mca_err_addr(struct ras_err_info *err_info, struct ras_err_addr *mca_err_addr)
--
2.34.1



More information about the amd-gfx mailing list