drm/amdgpu: Remove the unused function get_umc_v6_7_channel_index()
Subsystems (2)
PATCH 1/1 drm/amdgpu: Remove the unused function get_umc_v6_7_channel_index()
The function get_umc_v6_7_channel_index() is defined in the umc_v6_7.c file, but not called elsewhere, so delete this unused function.
drivers/gpu/drm/amd/amdgpu/umc_v6_7.c:60:24: warning: unused function 'get_umc_v6_7_channel_index'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/umc_v6_7.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/umc_v6_7.c +0 -7
@@ -57,13 +57,6 @@ static inline uint32_t get_umc_v6_7_reg_offset(struct amdgpu_device *adev,return adev->umc.channel_offs * ch_inst +UMC_V6_7_INST_DIST * umc_inst; } -static inline uint32_t get_umc_v6_7_channel_index (struct amdgpu_device *adev, -uint32_t umc_inst, -uint32_t ch_inst) -{ -return adev->umc.channel_idx_tbl[umc_inst * adev->umc.channel_inst_num + ch_inst]; -} -static void umc_v6_7_query_error_status_helper (struct amdgpu_device *adev,uint64_t mc_umc_status,uint32_t umc_reg_offset) {
Signature · 1 line
2.20.1.7.g153144c