Skip to content

Commit 071f526

Browse files
Tao Zhoualexdeucher
authored andcommitted
drm/amdgpu: retire unused get_umc_v6_7_channel_index
Fix the following compile warning: drivers/gpu/drm/amd/amdgpu/umc_v6_7.c:53:24: warning: unused function 'get_umc_v6_7_channel_index' [-Wunused-function] static inline uint32_t get_umc_v6_7_channel_index(struct amdgpu_device *adev, ^ 1 warning generated. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 2cfb737 commit 071f526

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/gpu/drm/amd/amdgpu/umc_v6_7.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ static inline uint32_t get_umc_v6_7_reg_offset(struct amdgpu_device *adev,
5757
return adev->umc.channel_offs * ch_inst + UMC_V6_7_INST_DIST * umc_inst;
5858
}
5959

60-
static inline uint32_t get_umc_v6_7_channel_index(struct amdgpu_device *adev,
61-
uint32_t umc_inst,
62-
uint32_t ch_inst)
63-
{
64-
return adev->umc.channel_idx_tbl[umc_inst * adev->umc.channel_inst_num + ch_inst];
65-
}
66-
6760
static void umc_v6_7_query_error_status_helper(struct amdgpu_device *adev,
6861
uint64_t mc_umc_status, uint32_t umc_reg_offset)
6962
{

0 commit comments

Comments
 (0)