On 2025-08-04 7:05, Zhu Lingshan wrote:
> This commit removes test_kq() function becuse it has been
> marked as unused since 2014 and no other functions calls it.
>
> Signed-off-by: Zhu Lingshan <lingshan....@amd.com>

Reviewed-by: Felix Kuehling <felix.kuehl...@amd.com>


> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c | 31 -------------------
>  1 file changed, 31 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c 
> b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
> index f676b7419984..6aa8b0348bad 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
> @@ -339,34 +339,3 @@ void kernel_queue_uninit(struct kernel_queue *kq)
>       kq_uninitialize(kq);
>       kfree(kq);
>  }
> -
> -/* FIXME: Can this test be removed? */
> -static __attribute__((unused)) void test_kq(struct kfd_node *dev)
> -{
> -     struct kernel_queue *kq;
> -     uint32_t *buffer, i;
> -     int retval;
> -
> -     dev_err(dev->adev->dev, "Starting kernel queue test\n");
> -
> -     kq = kernel_queue_init(dev, KFD_QUEUE_TYPE_HIQ);
> -     if (unlikely(!kq)) {
> -             dev_err(dev->adev->dev, "  Failed to initialize HIQ\n");
> -             dev_err(dev->adev->dev, "Kernel queue test failed\n");
> -             return;
> -     }
> -
> -     retval = kq_acquire_packet_buffer(kq, 5, &buffer);
> -     if (unlikely(retval != 0)) {
> -             dev_err(dev->adev->dev, "  Failed to acquire packet buffer\n");
> -             dev_err(dev->adev->dev, "Kernel queue test failed\n");
> -             return;
> -     }
> -     for (i = 0; i < 5; i++)
> -             buffer[i] = kq->nop_packet;
> -     kq_submit_packet(kq);
> -
> -     dev_err(dev->adev->dev, "Ending kernel queue test\n");
> -}
> -
> -

Reply via email to