[AMD Official Use Only - AMD Internal Distribution Only] Ping
> -----Original Message----- > From: Clement, Sunday <[email protected]> > Sent: Monday, February 9, 2026 3:51 PM > To: [email protected] > Cc: Kasiviswanathan, Harish <[email protected]>; Russell, Kent > <[email protected]>; Kuehling, Felix <[email protected]>; Clement, > Sunday <[email protected]> > Subject: [PATCH] drm/amdkfd: Remove dead kernel queue cleanup code > > Remove leftover kernel queue (kq) cleanup code from pqm_create_queue() that > has been dead since DIQ creation was removed from this function. > local variable kq was initialized to NULL but never actually used in the > function. > > Signed-off-by: Sunday Clement <[email protected]> > --- > drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c > b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c > index 449be58e884c..6d47ef5069b4 100644 > --- a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c > @@ -319,7 +319,6 @@ int pqm_create_queue(struct process_queue_manager > *pqm, > struct kfd_process_device *pdd; > struct queue *q; > struct process_queue_node *pqn; > - struct kernel_queue *kq; > enum kfd_queue_type type = properties->type; > unsigned int max_queues = 127; /* HWS limit */ > > @@ -333,7 +332,6 @@ int pqm_create_queue(struct process_queue_manager > *pqm, > max_queues = 255; > > q = NULL; > - kq = NULL; > > pdd = kfd_get_process_device_data(dev, pqm->process); > if (!pdd) { > @@ -477,8 +475,6 @@ int pqm_create_queue(struct process_queue_manager > *pqm, > > err_create_queue: > uninit_queue(q); > - if (kq) > - kernel_queue_uninit(kq); > kfree(pqn); > err_allocate_pqn: > /* check if queues list is empty unregister process from device */ > -- > 2.43.0
