Drop unused variables

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>


[ROCm/amdsmi commit: a99e827d97]
Cette révision appartient à :
Mario Limonciello (AMD)
2025-08-15 14:47:06 -05:00
révisé par Galantsev, Dmitrii
Parent a8a89db945
révision 08eec3c675
4 fichiers modifiés avec 0 ajouts et 8 suppressions
-4
Voir le fichier
@@ -454,10 +454,6 @@ int GetProcessInfoForPID(uint32_t pid, rsmi_process_info_t *proc,
proc->sdma_usage = 0;
proc->cu_occupancy = 0;
static amd::smi::RocmSMI& smi = amd::smi::RocmSMI::getInstance();
static std::map<uint64_t, std::shared_ptr<KFDNode>>& kfd_node_map =
smi.kfd_node_map();
for (itr = gpu_set->begin(); itr != gpu_set->end(); itr++) {
uint64_t gpu_id = (*itr);
-2
Voir le fichier
@@ -156,8 +156,6 @@ static auto amdsmi_read_cper_file(const std::string &filepath) -> CperFileCtx {
GUID_INIT(0xDC3EA0B0, 0xA144, 0x4797, 0xB9, 0x5B, 0x53, 0xFA, \
0x24, 0x2B, 0x6E, 0x1D)
static amdsmi_cper_guid_t mce = CPER_NOTIFY_MCE;
static amdsmi_cper_guid_t cmc = CPER_NOTIFY_CMC;
static amdsmi_cper_guid_t bt = BOOT_TYPE;
static amdsmi_cper_guid_t cr = AMD_OOB_CRASHDUMP;
static amdsmi_cper_guid_t nonstd = AMD_GPU_NONSTANDARD_ERROR;
-1
Voir le fichier
@@ -129,7 +129,6 @@ int32_t AMDSmiGPUDevice::get_compute_process_list_impl(GPUComputeProcessList_t&
*/
auto status_code(rsmi_status_t::RSMI_STATUS_SUCCESS);
auto num_running_processes = uint32_t(0);
auto list_process_allocation_size = uint32_t(0);
status_code = rsmi_compute_process_info_get(nullptr, &num_running_processes);
if ((status_code != rsmi_status_t::RSMI_STATUS_SUCCESS) || (num_running_processes <= 0)) {
-1
Voir le fichier
@@ -331,7 +331,6 @@ amdsmi_status_t smi_amdgpu_get_ranges(amd::smi::AMDSmiGPUDevice* device, amdsmi_
// if getting sclk or mclk info, read pp_od_clk_voltage for min and max info
if (sclk || mclk) {
unsigned int dpm_level;
std::ifstream smclk_ranges(smclk_min_max_fullpath.c_str());
unsigned int smax = 0;
unsigned int mmax = 0;