drm/amdkfd: remove unused sq_int_priv variable
authorTom Rix <trix@redhat.com>
Thu, 30 Mar 2023 15:20:40 +0000 (11:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:33:38 +0000 (12:33 -0400)
clang with W=1 reports
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_int_process_v11.c:282:38: error: variable
  'sq_int_priv' set but not used [-Werror,-Wunused-but-set-variable]
        uint8_t sq_int_enc, sq_int_errtype, sq_int_priv;
                                            ^
This variable is not used so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c

index 0f0fdea4cd8ad8bbe30e3162be251ddd0cbebf1d..c2166bf964ef08fc8b01cd64f79deb0ae110babe 100644 (file)
@@ -279,7 +279,7 @@ static void event_interrupt_wq_v11(struct kfd_node *dev,
 {
        uint16_t source_id, client_id, ring_id, pasid, vmid;
        uint32_t context_id0, context_id1;
-       uint8_t sq_int_enc, sq_int_errtype, sq_int_priv;
+       uint8_t sq_int_enc, sq_int_errtype;
        struct kfd_vm_fault_info info = {0};
        struct kfd_hsa_memory_exception_data exception_data;
 
@@ -348,13 +348,6 @@ static void event_interrupt_wq_v11(struct kfd_node *dev,
                                break;
                        case SQ_INTERRUPT_WORD_ENCODING_INST:
                                print_sq_intr_info_inst(context_id0, context_id1);
-                               sq_int_priv = REG_GET_FIELD(context_id0,
-                                               SQ_INTERRUPT_WORD_WAVE_CTXID0, PRIV);
-                               /*if (sq_int_priv && (kfd_set_dbg_ev_from_interrupt(dev, pasid,
-                                               KFD_CTXID0_DOORBELL_ID(context_id0),
-                                               KFD_CTXID0_TRAP_CODE(context_id0),
-                                               NULL, 0)))
-                                       return;*/
                                break;
                        case SQ_INTERRUPT_WORD_ENCODING_ERROR:
                                print_sq_intr_info_error(context_id0, context_id1);